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
|
@ -26,10 +26,8 @@ Add_dependency full glibc
|
|||
|
||||
post_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
# Create a default syslog.conf.
|
||||
install -d ${destdir}/etc/rc.d
|
||||
install -d ${DESTDIR}/etc/rc.d
|
||||
( \
|
||||
echo "auth,authpriv.* -/var/log/auth.log"; \
|
||||
echo "*.*;auth,authpriv.none -/var/log/sys.log"; \
|
||||
|
@ -38,8 +36,9 @@ post_install()
|
|||
echo "mail.* -/var/log/mail.log"; \
|
||||
echo "user.* -/var/log/user.log"; \
|
||||
echo "*.emerg *"; \
|
||||
) > $destdir/etc/syslog.conf
|
||||
) > $DESTDIR/etc/syslog.conf
|
||||
chmod 644 $DESTDIR/etc/syslog.conf
|
||||
|
||||
# Install the rc.d scripts.
|
||||
install -m755 ${FILESDIR}/* ${destdir}/etc/rc.d
|
||||
install -m755 ${FILESDIR}/* ${DESTDIR}/etc/rc.d
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue