From owner-svn-ports-all@FreeBSD.ORG Wed May 14 17:47:42 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D09AA5E; Wed, 14 May 2014 17:47:42 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E54F27DC; Wed, 14 May 2014 17:47:42 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4EHlg7v057086; Wed, 14 May 2014 17:47:42 GMT (envelope-from garga@svn.freebsd.org) Received: (from garga@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4EHlfA6057084; Wed, 14 May 2014 17:47:41 GMT (envelope-from garga@svn.freebsd.org) Message-Id: <201405141747.s4EHlfA6057084@svn.freebsd.org> From: Renato Botelho Date: Wed, 14 May 2014 17:47:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r354080 - head/mail/dspam X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 17:47:42 -0000 Author: garga Date: Wed May 14 17:47:41 2014 New Revision: 354080 URL: http://svnweb.freebsd.org/changeset/ports/354080 QAT: https://qat.redports.org/buildarchive/r354080/ Log: . Move USE_AUTOTOOLS=libtool to USES=libtool . Drop .la files . Use shebangfix for necessary files . Use @sample, @owner, @group and @mode to modernize plist . Try to remove LOG_DIR on pkg-plist Approved by: portmgr (blanket) Modified: head/mail/dspam/Makefile head/mail/dspam/pkg-plist Modified: head/mail/dspam/Makefile ============================================================================== --- head/mail/dspam/Makefile Wed May 14 17:21:44 2014 (r354079) +++ head/mail/dspam/Makefile Wed May 14 17:47:41 2014 (r354080) @@ -7,7 +7,7 @@ PORTNAME= dspam PORTVERSION= 3.9.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= mail MASTER_SITES= SF \ http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/ @@ -74,8 +74,7 @@ OPTIONS_DEFAULT= SYSLOG DEBUG DAEMON CLA HASH MYSQL MYSQL_COMPRESS PGSQL SQLITE3 MAKE_JOBS_UNSAFE= yes -USES= perl5 -USE_AUTOTOOLS= libtool +USES= perl5 libtool shebangfix USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" @@ -83,6 +82,16 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CFLAGS+= ${PTHREAD_CFLAGS} +SHEBANG_FILES= src/tools/dspam_logrotate \ + src/tools/dspam_notify.pl \ + src/tools/dspam_train.in \ + webui/cgi-bin/templates/de/strings.pl \ + webui/cgi-bin/templates/strings.pl \ + webui/cgi-bin/templates/fr/strings.pl \ + webui/cgi-bin/templates/es-es/strings.pl \ + webui/cgi-bin/templates/pt-br/strings.pl \ + webui/cgi-bin/*.cgi + .ifdef(GDBS) CFLAGS+= -g -DDEBUG STRIP= @@ -490,10 +499,6 @@ pre-configure: .endif post-install: - ${CP} ${WRKSRC}/src/dspam.conf ${WRKSRC}/src/dspam.conf.sample - cd ${WRKSRC}/src/ && \ - ${INSTALL_DATA} dspam.conf.sample ${STAGEDIR}${PREFIX}/etc - ######## # stupid hack until I figure out where/how to patch @${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig @@ -525,9 +530,6 @@ post-install: .endif # NOPORTEXAMPLES .if ${PORT_OPTIONS:MWEBUI} -. for I in admin.cgi admingraph.cgi configure.pl dspam.cgi graph.cgi templates/strings.pl - ${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL},g" ${WRKSRC}/webui/cgi-bin/${I} -. endfor ${MV} ${WRKSRC}/webui/cgi-bin/configure.pl ${WRKSRC}/webui/cgi-bin/configure.pl.sample cd ${WRKSRC}/webui/cgi-bin && ${MKDIR} ${STAGEDIR}${WWWDIR} && \ ${INSTALL_SCRIPT} configure.pl.sample ${STAGEDIR}${WWWDIR}/ && \ Modified: head/mail/dspam/pkg-plist ============================================================================== --- head/mail/dspam/pkg-plist Wed May 14 17:21:44 2014 (r354079) +++ head/mail/dspam/pkg-plist Wed May 14 17:47:41 2014 (r354080) @@ -14,11 +14,13 @@ bin/dspam_merge %%PGSQL%%bin/dspam_pg2int8 bin/dspam_stats bin/dspam_train -@unexec if cmp -s %D/etc/dspam.conf %D/etc/dspam.conf.sample; then rm -f %D/etc/dspam.conf; fi -etc/dspam.conf.sample -@exec chown %%DSPAM_OWNER%%:%%DSPAM_GROUP%% %D/%F -@exec chmod 640 %D/%F -@exec cp -np %D/%F %B/dspam.conf +@owner %%DSPAM_OWNER%% +@group %%DSPAM_GROUP%% +@mode 640 +@sample etc/dspam.conf.sample +@mode +@group +@owner include/dspam/buffer.h include/dspam/config.h include/dspam/config_shared.h @@ -35,9 +37,9 @@ include/dspam/read_config.h include/dspam/storage_driver.h include/dspam/tokenizer.h lib/libdspam.a -lib/libdspam.la lib/libdspam.so lib/libdspam.so.7 +lib/libdspam.so.7.0.0 man/man1/dspam.1.gz man/man1/dspam_clean.1.gz man/man1/dspam_dump.1.gz @@ -54,21 +56,21 @@ man/man3/dspam_getsource.3.gz man/man3/dspam_destroy.3.gz man/man3/dspam_detach.3.gz %%DYNAMIC%%%%HASH%%lib/dspam/libhash_drv.a -%%DYNAMIC%%%%HASH%%lib/dspam/libhash_drv.la %%DYNAMIC%%%%HASH%%lib/dspam/libhash_drv.so %%DYNAMIC%%%%HASH%%lib/dspam/libhash_drv.so.7 +%%DYNAMIC%%%%HASH%%lib/dspam/libhash_drv.so.7.0.0 %%DYNAMIC%%%%MYSQL%%lib/dspam/libmysql_drv.a -%%DYNAMIC%%%%MYSQL%%lib/dspam/libmysql_drv.la %%DYNAMIC%%%%MYSQL%%lib/dspam/libmysql_drv.so %%DYNAMIC%%%%MYSQL%%lib/dspam/libmysql_drv.so.7 +%%DYNAMIC%%%%MYSQL%%lib/dspam/libmysql_drv.so.7.0.0 %%DYNAMIC%%%%PGSQL%%lib/dspam/libpgsql_drv.a -%%DYNAMIC%%%%PGSQL%%lib/dspam/libpgsql_drv.la %%DYNAMIC%%%%PGSQL%%lib/dspam/libpgsql_drv.so %%DYNAMIC%%%%PGSQL%%lib/dspam/libpgsql_drv.so.7 +%%DYNAMIC%%%%PGSQL%%lib/dspam/libpgsql_drv.so.7.0.0 %%DYNAMIC%%%%SQLITE%%lib/dspam/libsqlite3_drv.a -%%DYNAMIC%%%%SQLITE%%lib/dspam/libsqlite3_drv.la %%DYNAMIC%%%%SQLITE%%lib/dspam/libsqlite3_drv.so %%DYNAMIC%%%%SQLITE%%lib/dspam/libsqlite3_drv.so.7 +%%DYNAMIC%%%%SQLITE%%lib/dspam/libsqlite3_drv.so.7.0.0 @dirrm lib/dspam libdata/pkgconfig/dspam.pc %%PORTDOCS%%%%DOCSDIR%%/CHANGELOG @@ -226,5 +228,6 @@ firstrun.txt.sample firstspam.txt.sample quarantinefull.txt.sample @cwd / +@dirrmtry %%LOG_DIR%% @dirrm %%DSPAM_HOME%% @exec chown %%DSPAM_HOME_OWNER%%:%%DSPAM_HOME_GROUP%% %%DSPAM_HOME%%