Added $TARGET to file paths in usher
This commit is contained in:
2
Makefile
2
Makefile
@@ -14,7 +14,7 @@ URL = https://www.gnu.org/software/libc/
|
||||
BRIEF = The GNU C Library
|
||||
DESC = The GNU C Library is used as the C library in the GNU system and in \
|
||||
GNU/Linux systems, as well as many other systems that use Linux as the kernel.
|
||||
SNAPVER = 6
|
||||
SNAPVER = 7
|
||||
|
||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||
|
||||
@@ -8,11 +8,11 @@ case $1 in
|
||||
;;
|
||||
postinst)
|
||||
if [ ! -f ${TARGET}/etc/ld.so.conf ]; then
|
||||
cp ${TARGET}/usr/share/glibc/ld.so.conf /etc/ld.so.conf
|
||||
cp ${TARGET}/usr/share/glibc/ld.so.conf ${TARGET}/etc/ld.so.conf
|
||||
fi
|
||||
|
||||
if [ ! -f ${TARGET}/etc/nsswitch.conf ]; then
|
||||
cp ${TARGET}/usr/share/glibc/nsswitch.conf /etc/nsswitch.conf
|
||||
cp ${TARGET}/usr/share/glibc/nsswitch.conf ${TARGET}/etc/nsswitch.conf
|
||||
fi
|
||||
;;
|
||||
prerm)
|
||||
|
||||
Reference in New Issue
Block a user