Provide some vars for use in template's targets.
These new vars are DESTDIR (by default XBPS_DESTDIR/pkgname-version), SRCPKGDESTDIR (XBPS_DESTDIR/sourcepkg-version) and FILESDIR (XBPS_TEMPLATESDIR/pkgname/files). This simplifies packages that used them. --HG-- extra : convert_revision : 287ea7128cb5df19870ca7aff0a3b8f99a11d63a
This commit is contained in:
parent
529cb677ff
commit
84222395b8
90 changed files with 535 additions and 735 deletions
|
@ -18,16 +18,14 @@ Add_dependency full procps
|
|||
|
||||
post_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
install -d $destdir/lib/firmware
|
||||
install -d $destdir/lib/udev/devices/pts
|
||||
install -d $destdir/lib/udev/devices/shm
|
||||
mknod -m0666 $destdir/lib/udev/devices/null c 1 3
|
||||
mknod -m0600 $destdir/lib/udev/devices/kmsg c 1 11
|
||||
ln -s /proc/self/fd $destdir/lib/udev/devices/fd
|
||||
ln -s /proc/self/fd/0 $destdir/lib/udev/devices/stdin
|
||||
ln -s /proc/self/fd/1 $destdir/lib/udev/devices/stdout
|
||||
ln -s /proc/self/fd/2 $destdir/lib/udev/devices/stderr
|
||||
ln -s /proc/kcore $destdir/lib/udev/devices/core
|
||||
install -d $DESTDIR/lib/firmware
|
||||
install -d $DESTDIR/lib/udev/devices/pts
|
||||
install -d $DESTDIR/lib/udev/devices/shm
|
||||
mknod -m0666 $DESTDIR/lib/udev/devices/null c 1 3
|
||||
mknod -m0600 $DESTDIR/lib/udev/devices/kmsg c 1 11
|
||||
ln -s /proc/self/fd $DESTDIR/lib/udev/devices/fd
|
||||
ln -s /proc/self/fd/0 $DESTDIR/lib/udev/devices/stdin
|
||||
ln -s /proc/self/fd/1 $DESTDIR/lib/udev/devices/stdout
|
||||
ln -s /proc/self/fd/2 $DESTDIR/lib/udev/devices/stderr
|
||||
ln -s /proc/kcore $DESTDIR/lib/udev/devices/core
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue