Bug 184847 - security/symbion-sslproxy: Support CC/CFLAGS properly
Summary: security/symbion-sslproxy: Support CC/CFLAGS properly
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: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-25 13:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.54 KB, patch)
2013-12-16 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-16 18:10:12 UTC
- Support CC/CFLAGS properly
- Add LICENSE
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 13:22:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-12-25 13:49:15 UTC
Author: pawel
Date: Wed Dec 25 13:49:07 2013
New Revision: 337416
URL: http://svnweb.freebsd.org/changeset/ports/337416

Log:
  - Respect CC/CFLAGS
  - Add LICENSE
  - Support staging
  
  PR:		ports/184847
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/security/symbion-sslproxy/Makefile   (contents, props changed)

Modified: head/security/symbion-sslproxy/Makefile
==============================================================================
--- head/security/symbion-sslproxy/Makefile	Wed Dec 25 13:47:13 2013	(r337415)
+++ head/security/symbion-sslproxy/Makefile	Wed Dec 25 13:49:07 2013	(r337416)
@@ -11,31 +11,26 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	ports@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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 13:49:18 UTC
State Changed
From-To: open->closed

Committed. Thanks!