Bug 185710 - net/yptransitd: Support CC/CFLAGS properly
Summary: net/yptransitd: 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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-12 18:40 UTC by tkato432
Modified: 2014-01-15 09:20 UTC (History)
0 users

See Also:


Attachments
file.diff (1.96 KB, patch)
2014-01-12 18:40 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 2014-01-12 18:40:08 UTC
- Support CC/CFLAGS properly
- Add LICENSE

Remove file:
pkg-plist
Comment 1 dfilter service freebsd_committer freebsd_triage 2014-01-15 09:12:14 UTC
Author: vanilla
Date: Wed Jan 15 09:12:07 2014
New Revision: 339768
URL: http://svnweb.freebsd.org/changeset/ports/339768
QAT: https://qat.redports.org/buildarchive/r339768/

Log:
  1: Support CC/CFLAGS properly
  2: Add LICENSE
  3: support stagedir.
  
  PR:		ports/185710
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/net/yptransitd/Makefile
  head/net/yptransitd/pkg-plist

Modified: head/net/yptransitd/Makefile
==============================================================================
--- head/net/yptransitd/Makefile	Wed Jan 15 08:48:46 2014	(r339767)
+++ head/net/yptransitd/Makefile	Wed Jan 15 09:12:07 2014	(r339768)
@@ -3,27 +3,44 @@
 
 PORTNAME=	yptransitd
 PORTVERSION=	0.5
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net
 MASTER_SITES=	SF
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A replacement for nss_ldap
+COMMENT=	Replacement for nss_ldap
+
+LICENSE=	BSD
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USE_OPENLDAP=	yes
 USES=		bison
-USE_LDCONFIG=	yes
+USE_OPENLDAP=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=--with-ldap-prefix=${LOCALBASE}
+CONFIGURE_ARGS=	--with-ldap-prefix=${LOCALBASE}
+USE_LDCONFIG=	yes
+MAKE_JOBS_UNSAFE=	yes
+
+PLIST_FILES=	%%ETCDIR%%/ldap.conf %%ETCDIR%%/modules/ldap.so \
+		%%ETCDIR%%/yptransitd.conf sbin/yptransitd
+PLIST_DIRS=	%%ETCDIR%%/modules %%ETCDIR%%
 
-NO_STAGE=	yes
 post-patch:
+	@${REINPLACE_CMD} -e 's, $$(CONFDIR), $${DESTDIR}$$(CONFDIR),' \
+		${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's,=gcc,=@CC@,' \
+		${WRKSRC}/lib/Makefile.in
+	@${REINPLACE_CMD} -e 's,-O2 -g,@CFLAGS@, ; \
+		 s, $${BINDIR}, $${DESTDIR}$${BINDIR},' \
+		${WRKSRC}/src/Makefile.in
 	@${REINPLACE_CMD} -E 's,^([[:blank:]]+)\([^\)]+\) ,\1,' \
 		${WRKSRC}/src/modules.c
+	@${REINPLACE_CMD} -e 's,-O2 -g,@CFLAGS@, ; \
+		 s, $$(CONFDIR), $${DESTDIR}$$(CONFDIR),' \
+		${WRKSRC}/src/modules/ldap/Makefile.in
 	@${REINPLACE_CMD} -e 's,(void \*) ,,g' \
 		${WRKSRC}/src/modules/ldap/cache.c
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
+pre-install:
+	@${MKDIR} ${STAGEDIR}${ETCDIR}/modules
 
 .include <bsd.port.mk>

Modified: head/net/yptransitd/pkg-plist
==============================================================================
--- head/net/yptransitd/pkg-plist	Wed Jan 15 08:48:46 2014	(r339767)
+++ head/net/yptransitd/pkg-plist	Wed Jan 15 09:12:07 2014	(r339768)
@@ -1,6 +0,0 @@
-etc/yptransitd/yptransitd.conf
-sbin/yptransitd
-etc/yptransitd/modules/ldap.so
-etc/yptransitd/ldap.conf
-@dirrm etc/yptransitd/modules
-@dirrm etc/yptransitd
_______________________________________________
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 2 Vanilla I. Shu freebsd_committer freebsd_triage 2014-01-15 09:12:15 UTC
State Changed
From-To: open->closed

Committed, thanks.