Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2002 14:07:41 +0700 (KRAT)
From:      Eugene Grosbein <eugen@grosbein.pp.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        fjoe@FreeBSD.org
Subject:   ports/45364: [PATCH] fix port databases/libudbc
Message-ID:  <200211170707.gAH77fqw066215@www.svzserv.kemerovo.su>

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

>Number:         45364
>Category:       ports
>Synopsis:       [PATCH] fix port databases/libudbc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 16 23:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Svyaz Service JSC
>Environment:
System: FreeBSD www.svzserv.kemerovo.su 4.7-STABLE FreeBSD 4.7-STABLE #3: Thu Oct 24 18:07:15 KRAST 2002 eu@www.svzserv.kemerovo.su:/home4/obj/home2/src/sys/WWW i386

>Description:
	This update does not change functionality of software but
	fixes port itself:
	
	- replace wrong NOPORTSDOC with right NOPORTDOCS
	- use sed(1) instead of perl(1)
	- remove extra invocation of cat(1)
	- use %%PORTDOCS%% for pkg-plist

>How-To-Repeat:
	N/A

>Fix:

diff -ur libudbc.orig/Makefile libudbc/Makefile
--- libudbc.orig/Makefile	Thu Nov 22 05:56:17 2001
+++ libudbc/Makefile	Sun Nov 17 13:50:18 2002
@@ -39,17 +39,16 @@
 	@${INSTALL} -c -o ${SHAREOWN} -g ${SHAREGRP} -m 755  ${WRKDIR}/udbcsdk/lib/libudbc.la ${PREFIX}/lib
 	@${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m 755 ${WRKDIR}/udbcsdk/lib/libudbc.so ${PREFIX}/lib
 	@${LN} -f ${PREFIX}/lib/libudbc.so ${PREFIX}/lib/libudbc.so.3
-.if !defined(NOPORTSDOC)
+.if !defined(NOPORTDOCS)
 	@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
 	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/doc/udbc.doc ${PREFIX}/share/doc/${PORTNAME}
 	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/doc/udbc.ini ${PREFIX}/share/doc/${PORTNAME}/udbc.ini.sample
 	@${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
-	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/examples/Makefile ${PREFIX}/share/examples/${PORTNAME}/Makefile
-	@${PERL} -pi -e "s,../,${PREFIX}/," ${PREFIX}/share/examples/${PORTNAME}/Makefile
+	@${SED} "s,../,${PREFIX}/," <${WRKDIR}/udbcsdk/examples/Makefile >${PREFIX}/share/examples/${PORTNAME}/Makefile
 	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/examples/udbctest.c ${PREFIX}/share/examples/${PORTNAME}
 
 post-install:
-	@${CAT} pkg-message | ${SED} "s'PREFIX'${PREFIX}'"
+	@${SED} "s'PREFIX'${PREFIX}'" <pkg-message
 .endif
 
 .include <bsd.port.pre.mk>
diff -ur libudbc.orig/pkg-plist libudbc/pkg-plist
--- libudbc.orig/pkg-plist	Tue Oct 23 02:31:08 2001
+++ libudbc/pkg-plist	Sun Nov 17 13:38:56 2002
@@ -12,10 +12,10 @@
 lib/libudbc.so
 @exec ln %D/lib/libudbc.so %D/lib/libudbc.so.3
 @unexec rm %D/lib/libudbc.so.3
-share/doc/libudbc/udbc.doc
-share/doc/libudbc/udbc.ini.sample
-share/examples/libudbc/Makefile
-share/examples/libudbc/udbctest.c
+%%PORTDOCS%%share/doc/libudbc/udbc.doc
+%%PORTDOCS%%share/doc/libudbc/udbc.ini.sample
+%%PORTDOCS%%share/examples/libudbc/Makefile
+%%PORTDOCS%%share/examples/libudbc/udbctest.c
 @dirrm include/udbc
-@dirrm share/doc/libudbc
-@dirrm share/examples/libudbc
+%%PORTDOCS%%@dirrm share/doc/libudbc
+%%PORTDOCS%%@dirrm share/examples/libudbc


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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