Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2014 17:47:41 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r354080 - head/mail/dspam
Message-ID:  <201405141747.s4EHlfA6057084@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405141747.s4EHlfA6057084>