mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Update to the latest CVS HEAD snapshot (as of today). Also, make sure we
use .tgz packages by default on systems that do not support .tbz packages. Thanks to eik for pointing this little problem out.
This commit is contained in:
parent
33427c1fc5
commit
d69ede6402
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110435
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= pkg_install
|
||||
PORTVERSION= 20040416
|
||||
PORTVERSION= 20040530
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
||||
http://people.FreeBSD.org/~marcus/
|
||||
@ -22,6 +22,8 @@ MAN1= pkg_add.1 pkg_create.1 pkg_delete.1 \
|
||||
|
||||
MAKE_ARGS= -DNOOBJ -DNOCRYPT -DNO_OPENSSL
|
||||
|
||||
PKG_FILES= main.c perform.c pkg_add.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 460102
|
||||
@ -46,11 +48,18 @@ pre-configure:
|
||||
-e 's,%%MANPREFIX%%,${MANPREFIX},g' \
|
||||
${FILESDIR}/Makefile.inc > ${WRKDIR}/Makefile.inc
|
||||
|
||||
.if ${OSVERSION} < 440001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500024 )
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 440001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500024 )
|
||||
@${FIND} ${WRKSRC} -name '*.c' \
|
||||
| ${XARGS} ${PERL} -pi.orig -e 's/__FBSDID\(("[^"]*")\)/static const char rcsid[] = $$1/'
|
||||
.endif
|
||||
.if ${OSVERSION} < 500039
|
||||
.for i in ${PKG_FILES}
|
||||
@${SED} -e 's,\.tbz,.tgz,g' ${WRKSRC}/add/${i} > \
|
||||
${WRKSRC}/add/${i}.bak
|
||||
@${MV} -f ${WRKSRC}/add/${i}.bak ${WRKSRC}/add/${i}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
deinstall:
|
||||
@if ${PKG_INFO} -e ${PKGNAME}; then \
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (pkg_install-20040416.tar.gz) = 4c8a5601feb15ee7bac3070bc4a0f992
|
||||
SIZE (pkg_install-20040416.tar.gz) = 84608
|
||||
MD5 (pkg_install-20040530.tar.gz) = f2a54d1450744592aadbd8b705938412
|
||||
SIZE (pkg_install-20040530.tar.gz) = 83373
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= pkg_install
|
||||
PORTVERSION= 20040416
|
||||
PORTVERSION= 20040530
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
||||
http://people.FreeBSD.org/~marcus/
|
||||
@ -22,6 +22,8 @@ MAN1= pkg_add.1 pkg_create.1 pkg_delete.1 \
|
||||
|
||||
MAKE_ARGS= -DNOOBJ -DNOCRYPT -DNO_OPENSSL
|
||||
|
||||
PKG_FILES= main.c perform.c pkg_add.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 460102
|
||||
@ -46,11 +48,18 @@ pre-configure:
|
||||
-e 's,%%MANPREFIX%%,${MANPREFIX},g' \
|
||||
${FILESDIR}/Makefile.inc > ${WRKDIR}/Makefile.inc
|
||||
|
||||
.if ${OSVERSION} < 440001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500024 )
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 440001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500024 )
|
||||
@${FIND} ${WRKSRC} -name '*.c' \
|
||||
| ${XARGS} ${PERL} -pi.orig -e 's/__FBSDID\(("[^"]*")\)/static const char rcsid[] = $$1/'
|
||||
.endif
|
||||
.if ${OSVERSION} < 500039
|
||||
.for i in ${PKG_FILES}
|
||||
@${SED} -e 's,\.tbz,.tgz,g' ${WRKSRC}/add/${i} > \
|
||||
${WRKSRC}/add/${i}.bak
|
||||
@${MV} -f ${WRKSRC}/add/${i}.bak ${WRKSRC}/add/${i}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
deinstall:
|
||||
@if ${PKG_INFO} -e ${PKGNAME}; then \
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (pkg_install-20040416.tar.gz) = 4c8a5601feb15ee7bac3070bc4a0f992
|
||||
SIZE (pkg_install-20040416.tar.gz) = 84608
|
||||
MD5 (pkg_install-20040530.tar.gz) = f2a54d1450744592aadbd8b705938412
|
||||
SIZE (pkg_install-20040530.tar.gz) = 83373
|
||||
|
Loading…
Reference in New Issue
Block a user