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
|
@ -24,14 +24,12 @@ Add_dependency run tcp_wrappers-libs
|
|||
|
||||
pre_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
install -d ${destdir}/usr/lib
|
||||
install -d ${destdir}/usr/sbin
|
||||
install -d ${destdir}/usr/include
|
||||
install -d ${DESTDIR}/usr/lib
|
||||
install -d ${DESTDIR}/usr/sbin
|
||||
install -d ${DESTDIR}/usr/include
|
||||
for f in 3 5 8; do
|
||||
install -d ${destdir}/usr/share/man/man${f}
|
||||
install -d ${DESTDIR}/usr/share/man/man${f}
|
||||
done
|
||||
install -D -m644 ${FILESDIR}/hosts.allow ${destdir}/etc/hosts.allow
|
||||
install -m644 ${FILESDIR}/hosts.deny ${destdir}/etc/hosts.deny
|
||||
install -D -m644 ${FILESDIR}/hosts.allow ${DESTDIR}/etc/hosts.allow
|
||||
install -m644 ${FILESDIR}/hosts.deny ${DESTDIR}/etc/hosts.deny
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue