burp-server: use make_dirs instead of .empty

This commit is contained in:
maxice8 2018-09-03 00:15:19 -03:00
parent 751ad107e3
commit df5a8d457f
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -3,7 +3,7 @@ _desc="A network-based backup and restore program"
pkgname=burp-server
version=1.4.40
revision=8
revision=9
short_desc="${_desc} - Server"
maintainer="Pierre Bourgin <pierre.bourgin@free.fr>"
license="AGPL-3.0-only, BSD-3-Clause, GPL-2.0-or-later"
@ -25,6 +25,8 @@ build_style=gnu-configure
configure_args="--sysconfdir=/etc/burp --sbindir=/usr/bin"
conf_files="/etc/burp/burp-server.conf"
make_dirs="/var/spool/burp 0755 root root"
post_install() {
vsv ${pkgname}
@ -35,9 +37,6 @@ post_install() {
# /usr/sbin/burp_ca is hardcoded in conf files
sed -e "s,/usr/sbin/burp_ca,/usr/bin/burp_ca,g" \
-i ${DESTDIR}/etc/burp/burp-server.conf
# storage folder
touch -f ${PKGDESTDIR}/var/spool/burp/.empty_on_purpose
}
burp-client_package() {
@ -45,6 +44,7 @@ burp-client_package() {
# openssl binary needed by burp_ca script
depends="ca-certificates"
conf_files="/etc/burp/burp.conf"
make_dirs="/etc/burp/CA-client 0755 root root"
pkg_install() {
vmove "usr/bin/burp"
vmove "usr/bin/burp_ca"
@ -58,8 +58,5 @@ burp-client_package() {
# /usr/sbin/burp_ca is hardcoded in conf files
sed -e "s,/usr/sbin/burp_ca,/usr/bin/burp_ca,g" \
-i ${PKGDESTDIR}/etc/burp/burp.conf
# burp_ca requires directory CA-client
touch -f ${PKGDESTDIR}/etc/burp/CA-client/.empty_on_purpose
}
}