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:
@@ -26,11 +26,9 @@ run_depends="glibc-2.8 bash-3.2"
|
||||
|
||||
post_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
# Make /sbin/initng -> /sbin/init link.
|
||||
cd $destdir/sbin && ln -sf initng init
|
||||
cd $DESTDIR/sbin && ln -sf initng init
|
||||
# Fix /bin/pidof link.
|
||||
rm -v $destdir/bin/pidof
|
||||
cd $destdir/bin && ln -sf ../sbin/killalli5 pidof
|
||||
rm -v $DESTDIR/bin/pidof
|
||||
cd $DESTDIR/bin && ln -sf ../sbin/killalli5 pidof
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user