diff --git a/srcpkgs/vnstat/patches/cross.patch b/srcpkgs/vnstat/patches/cross.patch new file mode 100644 index 00000000000..145b7173344 --- /dev/null +++ b/srcpkgs/vnstat/patches/cross.patch @@ -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* diff --git a/srcpkgs/vnstat/template b/srcpkgs/vnstat/template index 9bfcffc3f2d..2a1b1127697 100644 --- a/srcpkgs/vnstat/template +++ b/srcpkgs/vnstat/template @@ -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 " 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 }