ports/190263: [PATCH] net-mgmt/isic: Added STAGE support, take maintainership

Muhammad Moinur Rahman 5u623l20 at gmail.com
Mon May 26 13:00:00 UTC 2014


>Number:         190263
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/isic: Added STAGE support, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 26 13:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Muhammad Moinur Rahman
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD bofh.1asiacom.net 11.0-CURRENT FreeBSD 11.0-CURRENT #2 r265972: Wed May 14 02:05:04 BDT
>Description:
- Added LICENSE
- Added STAGE Support
- Take maintainership

Generated with FreeBSD Port Tools 1.02 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- isic-0.07.patch begins here ---
diff -ruN /usr/ports//net-mgmt/isic/Makefile ./Makefile
--- /usr/ports//net-mgmt/isic/Makefile	2013-09-21 04:24:43.000000000 +0600
+++ ./Makefile	2014-05-26 18:16:55.008383175 +0600
@@ -3,27 +3,39 @@
 
 PORTNAME=	isic
 PORTVERSION=	0.07
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/ISIC%20v${PORTVERSION}
 EXTRACT_SUFX=	.tgz
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	5u623l20 at gmail.com
 COMMENT=	IP Stack Integrity Checker
 
-LIB_DEPENDS=	net:${PORTSDIR}/net/libnet
+LICENSE=	BSD2CLAUSE
 
-GNU_CONFIGURE=	yes
+LIB_DEPENDS=	libnet.so:${PORTSDIR}/net/libnet
 
-MAN1=	isic.1
+GNU_CONFIGURE=	yes
+BINS=		isic tcpsic udpsic icmpsic esic multisic isic6 tcpsic6 udpsic6 icmpsic6
 
 LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet11-config
 
-NO_STAGE=	yes
+.include <bsd.port.pre.mk>
 post-patch:
+.if ${OSVERSION} > 900000
+	@${REINPLACE_CMD} -e 's|2147483647|2147483645|' \
+		${WRKSRC}/isic.h
+.endif
 	@${REINPLACE_CMD} -e 's|-lnet|`${LIBNET_CONFIG} --libs`|' \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 	@${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|' \
 		${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's|%%STAGEDIR%%%%PREFIX%%|${STAGEDIR}${PREFIX}|' \
+		${WRKSRC}/Makefile.in
+
+post-install:
+.for f in ${BINS}
+	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
+.endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN /usr/ports//net-mgmt/isic/files/patch-Makefile.in ./files/patch-Makefile.in
--- /usr/ports//net-mgmt/isic/files/patch-Makefile.in	1970-01-01 06:00:00.000000000 +0600
+++ ./files/patch-Makefile.in	2014-05-26 17:09:10.234663324 +0600
@@ -0,0 +1,19 @@
+--- Makefile.in.orig	2014-05-26 16:56:22.485716840 +0600
++++ Makefile.in	2014-05-26 16:57:01.753737962 +0600
+@@ -2,7 +2,7 @@
+ # To build for Trinux, add '-static' to LDFLAGS
+ # and 'strip *sic' after they compile
+ 
+-PREFIX  = @prefix@
++PREFIX  = %%STAGEDIR%%%%PREFIX%%
+ CC	= @CC@
+ DEFS	= @DEFS@ `libnet-config --defines`
+ CFLAGS	= @CFLAGS@ `libnet-config --cflags`
+@@ -63,7 +63,4 @@
+ 	  tar -czvf isic-$(VERSION).tgz ./isic-$(VERSION)/* )
+ 
+ install: $(BINS) $(MAN)
+-	$(INSTALL) -m 0755 -d $(PREFIX)/bin
+-	$(INSTALL) -m 0755 -c $(BINS) $(PREFIX)/bin
+-	$(INSTALL) -m 0755 -d $(PREFIX)/man/man1
+ 	${INSTALL} -m 0755 -c $(MAN) $(PREFIX)/man/man1
diff -ruN /usr/ports//net-mgmt/isic/pkg-plist ./pkg-plist
--- /usr/ports//net-mgmt/isic/pkg-plist	2014-01-22 21:16:56.000000000 +0600
+++ ./pkg-plist	2014-05-26 16:26:37.532840751 +0600
@@ -8,3 +8,4 @@
 bin/tcpsic6
 bin/udpsic6
 bin/icmpsic6
+man/man1/isic.1.gz
--- isic-0.07.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list