summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/aclgen/Makefile14
-rw-r--r--misc/aclgen/files/patch-aa10
2 files changed, 8 insertions, 16 deletions
diff --git a/misc/aclgen/Makefile b/misc/aclgen/Makefile
index 329254db1293..ed932a234704 100644
--- a/misc/aclgen/Makefile
+++ b/misc/aclgen/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: aclgen
-# Date created: 17 September 1999
-# Whom: igor@zynaps.ru
-#
+# Created by: igor@zynaps.ru
# $FreeBSD$
-#
PORTNAME= aclgen
PORTVERSION= 2.02
@@ -14,13 +10,19 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//}
MAINTAINER= ports@FreeBSD.org
COMMENT= Optimize Cisco routers IP access lists
-NO_WRKSUBDIR= YES
+NO_WRKSUBDIR= yes
+
MAKEFILE= /usr/share/mk/bsd.prog.mk
MAKE_ARGS= PROG=aclgen
MAN1= aclgen.1
PLIST_FILES= bin/aclgen
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|<malloc.h>|<unistd.h>| ; \
+ s|^void main|int main|' ${WRKSRC}/aclgen.c
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/aclgen ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/aclgen.1 ${MANPREFIX}/man/man1
diff --git a/misc/aclgen/files/patch-aa b/misc/aclgen/files/patch-aa
deleted file mode 100644
index f35c352144a0..000000000000
--- a/misc/aclgen/files/patch-aa
+++ /dev/null
@@ -1,10 +0,0 @@
---- aclgen.c.orig Thu Jul 3 11:35:57 1997
-+++ aclgen.c Fri Sep 17 18:08:28 1999
-@@ -15,7 +15,6 @@
- #include <stdio.h>
- #include <string.h>
- #include <ctype.h>
--#include <malloc.h>
- #include <stdlib.h>
-
- /*#define P(x) ()*/