Install by default xbps.conf into $(PREFIX)/etc and use it.

--HG--
extra : convert_revision : d6550a3d9e6093cb1ec789715e2b1107b9bb59bd
This commit is contained in:
Juan RP
2009-02-05 15:21:33 +01:00
parent 001de5eb1a
commit c86be9931b
6 changed files with 29 additions and 10 deletions

View File

@@ -5,14 +5,14 @@ BIN = xbps-src
.PHONY: all
all:
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" main.sh > xbps-src
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" \
-e "s|@@XBPS_INSTALL_ETCDIR@@|$(ETCDIR)|g" \
main.sh > xbps-src
.PHONY: clean
clean: clean-bins
clean-bins:
clean:
-rm -f $(BIN)
install: $(BIN)
install: all
install -d $(SBINDIR)
install -m 755 $(BIN) $(SBINDIR)

View File

@@ -27,7 +27,7 @@
#-
trap "echo && exit 1" INT QUIT
: ${XBPS_CONFIG_FILE:=/etc/xbps.conf}
: ${XBPS_CONFIG_FILE:=@@XBPS_INSTALL_ETCDIR@@/xbps.conf}
: ${progname:=$(basename $0)}
: ${fakeroot_cmd:=fakeroot}
@@ -67,7 +67,7 @@ Targets:
Options:
-C Do not remove build directory after successful installation.
-c Path to global configuration file:
if not specified /etc/xbps.conf is used.
if not specified @@XBPS_INSTALL_ETCDIR@@/xbps.conf is used.
_EOF
exit 1
}