vnstat: unbreak cross.

This commit is contained in:
Juan RP 2015-12-22 07:55:57 +01:00
parent 90bd319d1f
commit 4156927dbe
2 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,30 @@
--- Makefile.am.orig 2015-12-22 07:53:14.124104461 +0100
+++ Makefile.am 2015-12-22 07:53:24.434208468 +0100
@@ -93,27 +93,5 @@ release: distcheck
rm -fr $(PACKAGE_NAME)-$(PACKAGE_VERSION)
ls -l $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
-install-data-hook:
- $(DESTDIR)$(bindir)/vnstat$(EXEEXT) --showconfig >vnstat.conf && \
- $(MKDIR_P) $(DESTDIR)$(sysconfdir) && \
- mv -f vnstat.conf $(DESTDIR)$(sysconfdir)/vnstat.conf
- @echo
- @echo "============================================================================"
- @echo " Note: No service file has been installed for starting the daemon"
- @echo " automatically. Such setup will need to be created manually"
- @echo " depending on the used environment. See the included documentation."
- @echo "============================================================================"
- @echo
-
-uninstall-hook:
- -rm -f $(DESTDIR)$(sysconfdir)/vnstat.conf
- -rmdir $(DESTDIR)$(sysconfdir)
- @echo
- @echo "=================================================================="
- @echo " Note: The database directory has been left untouched."
- @echo " It will need to be removed manually if no longer needed."
- @echo "=================================================================="
- @echo
-
clean-local:
-rm -fr coverage *.lcov *.gz test*.log test*.xml src/*.gc* tests/*.gc*

View file

@ -1,8 +1,9 @@
# Template build file for "vnstat"
pkgname=vnstat
version=1.15
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
short_desc="A terminal based network traffic monitor"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
homepage="http://humdi.net/vnstat/"
@ -13,6 +14,10 @@ checksum=c3814b5baa8b627198a8debfe1dce4b4346a342523818cc8668a5497971dbc39
conf_files="/etc/vnstat.conf"
make_dirs="/var/lib/vnstat 0755 root root"
pre_configure() {
autoreconf -fi
}
post_install() {
vconf cfg/vnstat.conf
vsv vnstatd
}