ppp: use make_dirs instead of .empty

This commit is contained in:
maxice8 2018-09-02 20:40:40 -03:00
parent 3d874184ce
commit 418e3143e2
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 8 additions and 10 deletions

View File

@ -1,15 +1,16 @@
# Template file for 'ppp'
pkgname=ppp
version=2.4.7
revision=7
revision=8
makedepends="libpcap-devel"
short_desc="PPP (Point-to-Point Protocol) daemon"
homepage="https://ppp.samba.org/"
license="BSD, LGPLv2+, GPLv2+, Public Domain"
license="BSD-3-Clause, LGPL-2.0-or-later, GPL-2.0-or-later, Public Domain"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="https://ftp.samba.org/pub/ppp/ppp-$version.tar.gz"
checksum=02e0a3dd3e4799e33103f70ec7df75348c8540966ee7c948e4ed8a42bbccfb30
makedepends="libpcap-devel"
make_dirs="/etc/ppp/ipv6-down.d 0755 root root
/etc/ppp/peers 0755 root root"
conf_files="
/etc/ppp/ip-up
/etc/ppp/ip-down
@ -41,9 +42,11 @@ do_configure() {
./configure ${configure_args}
}
do_build() {
make COPTS="${CFLAGS} ${LDFLAGS}" ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR}/usr install
@ -55,7 +58,7 @@ do_install() {
vmkdir usr/bin
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
vbin pppd/pppd
vbin pppd/pppd
vbin chat/chat
vinstall ${FILESDIR}/options 644 etc/ppp
@ -67,8 +70,6 @@ do_install() {
vinstall ${FILESDIR}/ip-up.d.dns.sh 755 etc/ppp/ip-up.d 00-dns.sh
vinstall ${FILESDIR}/ip-down.d.dns.sh 755 etc/ppp/ip-down.d 00-dns.sh
vinstall ${FILESDIR}/ipv6-up.d.iface-config.sh 755 etc/ppp/ipv6-up.d 00-iface-config.sh
vmkdir etc/ppp/ipv6-down.d
touch ${DESTDIR}/etc/ppp/ipv6-down.d/.empty_on_purpose
vbin scripts/pon
vman scripts/pon.1
@ -77,9 +78,6 @@ do_install() {
vinstall etc.ppp/pap-secrets 600 etc/ppp
vinstall etc.ppp/chap-secrets 600 etc/ppp
vmkdir etc/ppp/peers
touch -f ${DESTDIR}/etc/ppp/peers/.empty_on_purpose
}
ppp-devel_package() {