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
|
@ -10,11 +10,8 @@ Add_dependency run perl
|
|||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr/bin
|
||||
mkdir -p ${DESTDIR}/usr/bin
|
||||
for f in ntp-wait ntptrace; do
|
||||
mv ${origdir}/usr/bin/${f} ${destdir}/usr/bin
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin
|
||||
done
|
||||
}
|
||||
|
|
|
@ -25,14 +25,12 @@ Add_dependency full openssl
|
|||
|
||||
post_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
install -d ${destdir}/etc/rc.d
|
||||
install -d ${destdir}/usr/share/ntp
|
||||
install -d ${destdir}/usr/share/doc/ntp
|
||||
install -m 755 ${FILESDIR}/ntpd ${destdir}/etc/rc.d/ntpd
|
||||
install -m 755 ${FILESDIR}/ntpdate ${destdir}/etc/rc.d/ntpdate
|
||||
install -m 644 ${FILESDIR}/ntp.conf ${destdir}/etc/ntp.conf
|
||||
cp -a ${wrksrc}/html ${destdir}/usr/share/doc/ntp
|
||||
cp -a ${wrksrc}/conf ${destdir}/usr/share/ntp
|
||||
install -d ${DESTDIR}/etc/rc.d
|
||||
install -d ${DESTDIR}/usr/share/ntp
|
||||
install -d ${DESTDIR}/usr/share/doc/ntp
|
||||
install -m 755 ${FILESDIR}/ntpd ${DESTDIR}/etc/rc.d/ntpd
|
||||
install -m 755 ${FILESDIR}/ntpdate ${DESTDIR}/etc/rc.d/ntpdate
|
||||
install -m 644 ${FILESDIR}/ntp.conf ${DESTDIR}/etc/ntp.conf
|
||||
cp -a ${wrksrc}/html ${DESTDIR}/usr/share/doc/ntp
|
||||
cp -a ${wrksrc}/conf ${DESTDIR}/usr/share/ntp
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue