Bug 102310 - security/bruteblock version update
Summary: security/bruteblock version update
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rong-En Fan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-20 07:40 UTC by Oleksii Samorukov
Modified: 2006-08-23 11:47 UTC (History)
0 users

See Also:


Attachments
file.diff (1.75 KB, patch)
2006-08-20 07:40 UTC, Oleksii Samorukov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksii Samorukov freebsd_committer freebsd_triage 2006-08-20 07:40:14 UTC

Update to bruteblock 0.0.5
Added port documentation to the Makefile
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-20 07:40:21 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Rong-En Fan freebsd_committer freebsd_triage 2006-08-20 08:58:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

Eat.
Comment 3 Dmitry Marakasov 2006-08-22 14:25:47 UTC
* Alex Samorukov (samm@os2.kiev.ua) wrote:
> >Synopsis:       security/bruteblock version update
Sorry, I had problems with internet access for some time.

Here, corrected version of the patch.
* DESTDIR is contained in DOCSDIR
* Add PORTDOCS
* Fix plist

--- bruteblock-0.0.5.patch begins here ---
diff -ruN bruteblock.orig/Makefile bruteblock/Makefile
--- bruteblock.orig/Makefile	Tue Aug 22 17:16:02 2006
+++ bruteblock/Makefile	Tue Aug 22 17:20:38 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	bruteblock
-PORTVERSION=	0.0.4
+PORTVERSION=	0.0.5
 CATEGORIES=	security
 MASTER_SITES=	http://samm.kiev.ua/bruteblock/
 
@@ -23,6 +23,8 @@
 
 CONFDIR=	${PREFIX}/etc/${PORTNAME}
 
+PORTDOCS=	FAQ README CHANGES
+
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 503000
@@ -33,13 +35,19 @@
 	${INSTALL_PROGRAM} ${WRKSRC}/bruteblock ${PREFIX}/sbin/
 	${INSTALL_PROGRAM} ${WRKSRC}/bruteblockd ${PREFIX}/sbin/
 	${MKDIR} ${PREFIX}/etc/bruteblock
-.for file in ssh	# more configs are planned to be added
+.for file in ssh proftpd
 	${INSTALL_DATA} ${WRKSRC}/etc/${file}.conf ${CONFDIR}/${file}.conf.dist
 	if [ ! -f ${CONFDIR}/${file}.conf ]; then \
 		${INSTALL_DATA} ${CONFDIR}/${file}.conf.dist ${CONFDIR}/${file}.conf; \
 	fi
 .endfor
 	${INSTALL_MAN} ${WRKSRC}/doc/bruteblock.8 ${PREFIX}/man/man8/
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${DOCSDIR}/
+	@${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCSDIR}/
+	@${INSTALL_DATA} ${WRKSRC}/doc/CHANGES ${DOCSDIR}/
+.endif
 
 post-install:
 .if !defined(BATCH)
diff -ruN bruteblock.orig/distinfo bruteblock/distinfo
--- bruteblock.orig/distinfo	Tue Aug 22 17:16:02 2006
+++ bruteblock/distinfo	Tue Aug 22 17:16:34 2006
@@ -1,3 +1,3 @@
-MD5 (bruteblock-0.0.4.tar.gz) = 01f2a300dd4abb28fc377de5848aa80e
-SHA256 (bruteblock-0.0.4.tar.gz) = f13df7f866842c4f32b7d6b13df0fac3250a41f646602581452af623c790159b
-SIZE (bruteblock-0.0.4.tar.gz) = 24170
+MD5 (bruteblock-0.0.5.tar.gz) = 764ee1dac21a32cd3f1778164c206bac
+SHA256 (bruteblock-0.0.5.tar.gz) = 7c7ef533b27be1d72e43a7fa6828896124a4f22808f2a0ecca2e587e1563e253
+SIZE (bruteblock-0.0.5.tar.gz) = 24971
diff -ruN bruteblock.orig/pkg-plist bruteblock/pkg-plist
--- bruteblock.orig/pkg-plist	Tue Aug 22 17:16:02 2006
+++ bruteblock/pkg-plist	Tue Aug 22 17:19:29 2006
@@ -1,5 +1,8 @@
 sbin/bruteblock
 sbin/bruteblockd
+@unexec if cmp -s %D/etc/bruteblock/proftpd.conf.dist %D/etc/bruteblock/proftpd.conf; then rm -f %D/etc/bruteblock/proftpd.conf; fi
+etc/bruteblock/proftpd.conf.dist
+@exec if [ ! -f %D/etc/bruteblock/proftpd.conf ]; then cp -p %D/%F %B/bruteblock/proftpd.conf; fi
 @unexec if cmp -s %D/etc/bruteblock/ssh.conf.dist %D/etc/bruteblock/ssh.conf; then rm -f %D/etc/bruteblock/ssh.conf; fi
 etc/bruteblock/ssh.conf.dist
 @exec if [ ! -f %D/etc/bruteblock/ssh.conf ]; then cp -p %D/%F %B/bruteblock/ssh.conf; fi
--- bruteblock-0.0.5.patch ends here ---

-- 
Best regards,
 Dmitry                          mailto:amdmi3@mail.ru
Comment 4 Rong-En Fan freebsd_committer freebsd_triage 2006-08-23 11:47:23 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!