Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 03:20:20 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/185710: net/yptransitd: Support CC/CFLAGS properly
Message-ID:  <20140113032020.139154e80f0ff124b39f9c99@yahoo.com>
Resent-Message-ID: <201401121840.s0CIe8Ne049485@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185710
>Category:       ports
>Synopsis:       net/yptransitd: 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:   Sun Jan 12 18:40:08 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS properly
- Add LICENSE

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/net/yptransitd/Makefile net/yptransitd/Makefile
--- /usr/ports/net/yptransitd/Makefile	2013-11-06 21:53:22.000000000 +0900
+++ net/yptransitd/Makefile	2014-01-13 00:00:00.000000000 +0900
@@ -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>
diff -urN /usr/ports/net/yptransitd/pkg-plist net/yptransitd/pkg-plist
--- /usr/ports/net/yptransitd/pkg-plist	2013-11-06 21:53:22.000000000 +0900
+++ net/yptransitd/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -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
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140113032020.139154e80f0ff124b39f9c99>