diff options
author | garga <garga@FreeBSD.org> | 2014-05-15 21:19:06 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2014-05-15 21:19:06 +0800 |
commit | 02febcf549151e1b97f756cc1d20a6d478b47c72 (patch) | |
tree | 521ae7614f7f9aa4886064ae2501fa21150181b8 /www/havp | |
parent | 0e33477cc5370d5223a7576b15d69515c9f26a7c (diff) | |
download | freebsd-ports-gnome-02febcf549151e1b97f756cc1d20a6d478b47c72.tar.gz freebsd-ports-gnome-02febcf549151e1b97f756cc1d20a6d478b47c72.tar.zst freebsd-ports-gnome-02febcf549151e1b97f756cc1d20a6d478b47c72.zip |
. Support stage
. Use new LIB_DEPENDS syntax
Approved by: portmgr (blanket)
Diffstat (limited to 'www/havp')
-rw-r--r-- | www/havp/Makefile | 20 | ||||
-rw-r--r-- | www/havp/files/patch-havp_Makefile.in | 8 | ||||
-rw-r--r-- | www/havp/pkg-plist | 7 |
3 files changed, 19 insertions, 16 deletions
diff --git a/www/havp/Makefile b/www/havp/Makefile index ad02e77a5663..c1837ba2ae9f 100644 --- a/www/havp/Makefile +++ b/www/havp/Makefile @@ -3,7 +3,7 @@ PORTNAME= havp PORTVERSION= 0.91 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.server-side.de/download/ \ http://bio3k.softboard.ru/uploads/arch/ \ @@ -12,7 +12,7 @@ MASTER_SITES= http://www.server-side.de/download/ \ MAINTAINER= ayu@commun.jp COMMENT= HTTP Antivirus Proxy -LIB_DEPENDS= clamav.7:${PORTSDIR}/security/clamav +LIB_DEPENDS= libclamav.so:${PORTSDIR}/security/clamav USES= gmake perl5 GNU_CONFIGURE= yes @@ -34,7 +34,6 @@ SSL_DESC= SSL proxying (not scanned, only forwarded!) CLAMAV_DESC= libclamav support TROPHIE_DESC= Trend Micro (Trophie) support -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MSSL} @@ -55,16 +54,11 @@ CONFIGURE_ARGS+= --enable-trophie CONFIGURE_ARGS+= --disable-trophie .endif -pre-install: - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: - @[ -f ${PREFIX}/etc/havp/havp.config ] || \ - ${CP} ${PREFIX}/etc/havp/havp.config.default ${PREFIX}/etc/havp/havp.config - @${MKDIR} ${EXAMPLESDIR} - @${CP} ${WRKSRC}/etc/havp/blacklist ${EXAMPLESDIR}/blacklist.sample - @${CP} -R ${WRKSRC}/etc/havp/templates ${EXAMPLESDIR} - @${CP} ${WRKSRC}/etc/havp/whitelist ${EXAMPLESDIR}/whitelist.sample - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @${CP} ${WRKSRC}/etc/havp/blacklist ${STAGEDIR}${EXAMPLESDIR}/blacklist.sample + @${CP} -R ${WRKSRC}/etc/havp/templates ${STAGEDIR}${EXAMPLESDIR} + @${CP} ${WRKSRC}/etc/havp/whitelist ${STAGEDIR}${EXAMPLESDIR}/whitelist.sample + @${MKDIR} ${STAGEDIR}${LOG_DIR} ${STAGEDIR}${TMP_DIR} ${STAGEDIR}${RUN_DIR} .include <bsd.port.mk> diff --git a/www/havp/files/patch-havp_Makefile.in b/www/havp/files/patch-havp_Makefile.in index 417fe6638f93..b8b8274f0fef 100644 --- a/www/havp/files/patch-havp_Makefile.in +++ b/www/havp/files/patch-havp_Makefile.in @@ -1,13 +1,15 @@ --- havp/Makefile.in.orig 2007-09-11 15:42:44.000000000 -0300 -+++ havp/Makefile.in 2008-02-18 08:38:17.000000000 -0300 -@@ -26,30 +26,7 @@ ++++ havp/Makefile.in 2014-05-14 16:38:18.000000000 -0300 +@@ -25,31 +25,8 @@ + install: all $(INSTALL) -d $(DESTDIR)$(sbindir) - $(INSTALL) -m 755 havp $(DESTDIR)$(sbindir)/havp +- $(INSTALL) -m 755 havp $(DESTDIR)$(sbindir)/havp - $(INSTALL) -d -m 755 $(DESTDIR)$(localstatedir)/log/havp - $(INSTALL) -d -m 755 $(DESTDIR)$(localstatedir)/tmp/havp - $(INSTALL) -d -m 755 $(DESTDIR)$(localstatedir)/run/havp - $(INSTALL) -d $(DESTDIR)/etc/init.d ++ $(BSD_INSTALL_PROGRAM) -m 755 havp $(DESTDIR)$(sbindir)/havp $(INSTALL) -m 644 ../etc/havp/havp.config $(DESTDIR)$(sysconfdir)/havp/havp.config.default - @if [ ! -f $(DESTDIR)$(sysconfdir)/havp/havp.config ]; then \ - echo "$(INSTALL) -m 644 ../etc/havp/havp.config $(DESTDIR)$(sysconfdir)/havp/havp.config"; \ diff --git a/www/havp/pkg-plist b/www/havp/pkg-plist index 323a40c3ecd6..95e150cd4123 100644 --- a/www/havp/pkg-plist +++ b/www/havp/pkg-plist @@ -120,6 +120,13 @@ etc/havp/havp.config.default @dirrm %%EXAMPLESDIR%%/templates %%EXAMPLESDIR%%/whitelist.sample @dirrm %%EXAMPLESDIR%% +@cwd / +@mode 755 +@owner havp +@group havp @dirrmtry %%LOG_DIR%% @dirrmtry %%TMP_DIR%% @dirrmtry %%RUN_DIR%% +@owner +@group +@mode |