xbps-src: set ETCDIR to PREFIX/etc/xbps by default.
This commit is contained in:
parent
2e53ec2c82
commit
47a52ce84f
4 changed files with 6 additions and 6 deletions
|
@ -25,8 +25,8 @@ install:
|
|||
install -d $(DESTDIR)$(ETCDIR); \
|
||||
fi
|
||||
|
||||
if [ ! -f $(DESTDIR)$(ETCDIR)/$(CONF_FILE) ]; then \
|
||||
install -m 644 $(CONF_FILE) $(DESTDIR)$(ETCDIR); \
|
||||
if [ ! -f $(DESTDIR)$(ETCDIR)/$(CONF_FILE) ]; then \
|
||||
install -m644 $(CONF_FILE) $(DESTDIR)$(ETCDIR); \
|
||||
fi
|
||||
|
||||
.PHONY: uninstall
|
||||
|
|
|
@ -66,7 +66,7 @@ chroot_init()
|
|||
mkdir -p $XBPS_MASTERDIR/usr/local/etc
|
||||
fi
|
||||
|
||||
XBPSSRC_CF=$XBPS_MASTERDIR/usr/local/etc/xbps-src.conf
|
||||
XBPSSRC_CF=$XBPS_MASTERDIR/usr/local/etc/xbps/xbps-src.conf
|
||||
|
||||
cat > $XBPSSRC_CF <<_EOF
|
||||
# Generated configuration file by xbps-src, DO NOT EDIT!
|
||||
|
@ -107,7 +107,7 @@ _EOF
|
|||
cat > $XBPS_MASTERDIR/bin/xbps-shell <<_EOF
|
||||
#!/bin/sh
|
||||
|
||||
. /usr/local/etc/xbps-src.conf
|
||||
. /usr/local/etc/xbps/xbps-src.conf
|
||||
. /usr/local/share/xbps-src/shutils/init_funcs.sh
|
||||
set_defvars
|
||||
|
||||
|
|
|
@ -7,4 +7,4 @@ SBINDIR ?= $(DESTDIR)$(PREFIX)/sbin
|
|||
#
|
||||
SHAREDIR ?= $(PREFIX)/share/xbps-src
|
||||
LIBEXECDIR ?= $(PREFIX)/libexec/xbps-src
|
||||
ETCDIR ?= $(PREFIX)/etc
|
||||
ETCDIR ?= $(PREFIX)/etc/xbps
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#-
|
||||
readonly XBPS_SRC_BUILD_VERSION=20111118
|
||||
readonly XBPS_SRC_BUILD_VERSION=20111118-1
|
||||
|
||||
if [ -n "$IN_CHROOT" ]; then
|
||||
export XBPS_ETCDIR=/usr/local/etc/xbps
|
||||
|
|
Loading…
Reference in a new issue