ports/184847: security/symbion-sslproxy: Support CC/CFLAGS properly
KATO Tsuguru
tkato432 at yahoo.com
Mon Dec 16 18:10:13 UTC 2013
>Number: 184847
>Category: ports
>Synopsis: security/symbion-sslproxy: Support CC/CFLAGS properly
>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 Dec 16 18:10:12 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS properly
- Add LICENSE
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/security/symbion-sslproxy/Makefile security/symbion-sslproxy/Makefile
--- /usr/ports/security/symbion-sslproxy/Makefile 2013-11-06 22:03:01.000000000 +0900
+++ security/symbion-sslproxy/Makefile 2013-12-17 00:00:00.000000000 +0900
@@ -3,6 +3,7 @@
PORTNAME= symbion-sslproxy
PORTVERSION= 1.0.5
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF/sslproxy/sslproxy/${PORTVERSION}
DISTNAME= sslproxy-${PORTVERSION}
@@ -11,31 +12,26 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= SSL proxy for securing insecure connections
-USE_OPENSSL= YES
-USE_GMAKE= YES
-PLIST_FILES= sbin/ssl_proxy
-SUB_FILES+= pkg-message
+LICENSE= GPLv2 # (or later)
+
+USES= gmake
+USE_OPENSSL= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+SUB_FILES= pkg-message
-.if !defined(NOPORTDOCS)
PORTDOCS= README
-.endif
+PLIST_FILES= sbin/ssl_proxy
post-patch:
- ${REINPLACE_CMD} -e 's|CC =|CC ?=|' \
- -e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile.global
+ @${REINPLACE_CMD} -e \
+ 's|^CC =|CC ?=| ; \
+ s|^LD =.*|LD = $$(CC)| ; \
+ s|^CFLAGS =|#CFLAGS =| ; \
+ s|^LDFLAGS =|#LDFLAGS =|' ${WRKSRC}/Makefile.global
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ssl_proxy ${PREFIX}/sbin
-
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
-
-post-install:
- ${CAT} ${PKGMESSAGE}
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ssl_proxy ${STAGEDIR}${PREFIX}/sbin)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list