Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
# New ports collection makefile for: rpm
|
|
|
|
# Date created: 6 May 2003
|
|
|
|
# Whom: Greg Lewis <glewis@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rpm
|
|
|
|
PORTVERSION= 4.0.4
|
2004-03-19 23:01:40 +00:00
|
|
|
PORTREVISION= 2
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
CATEGORIES= archivers
|
2004-03-05 18:42:59 +00:00
|
|
|
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ \
|
2004-08-25 12:37:11 +00:00
|
|
|
ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
|
|
COMMENT= The RPM Package Manager
|
|
|
|
|
|
|
|
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 \
|
|
|
|
popt.0:${PORTSDIR}/devel/popt
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
|
|
|
|
.if !exists(/usr/bin/bzip2)
|
|
|
|
LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
|
|
|
|
.endif
|
2004-03-09 19:40:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
|
|
|
|
.endif
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
|
2004-06-09 21:07:42 +00:00
|
|
|
USE_LIBTOOL_VER=13
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GETTEXT= yes
|
2004-03-30 19:20:22 +00:00
|
|
|
USE_ICONV= yes
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
LATEST_LINK= rpm4
|
2004-03-19 18:46:04 +00:00
|
|
|
CONFLICTS= beecrypt-* rpm-3.*
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
|
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
CONFIGURE_ARGS+=--with-python=auto
|
|
|
|
USE_PYTHON= yes
|
|
|
|
PLIST_SUB+= PYTHON=""
|
|
|
|
CPPFLAGS+= -I${PYTHON_INCLUDEDIR}
|
|
|
|
LDFLAGS+= -L${PYTHON_LIBDIR}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-python
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2004-03-05 18:56:40 +00:00
|
|
|
CONFIGURE_ARGS+=--without-db \
|
|
|
|
--with-popt-prefix="${LOCALBASE}" \
|
|
|
|
--sysconfdir=${PREFIX}/etc \
|
|
|
|
--without-javaglue
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
|
|
|
|
MAN1= gendiff.1
|
|
|
|
MAN8= rpm.8 rpm2cpio.8 rpmbuild.8
|
|
|
|
|
2004-03-09 19:40:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's:%%LOCALBASE%%:${LOCALBASE}:' \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/beecrypt/configure
|
|
|
|
|
|
|
|
post-install:
|
2004-03-09 19:40:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
# Install documentation
|
|
|
|
${MKDIR} ${DOCSDIR}/apidocs/html
|
|
|
|
cd ${WRKSRC}/apidocs/html && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} \
|
|
|
|
${DOCSDIR}/apidocs/html/
|
|
|
|
.endif
|
|
|
|
# Run package installation script
|
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating computer software packages. Each
software package consists of an archive of files along with information
about the package like its version, a description, and the like.
There is also a related API ("Application Program Interface"),
permitting advanced developers to bypass 'shelling out' to a command
line, and to manage such transactions from within a native coding
language.
WWW: http://www.rpm.org/"
4.0.4 was chosen because:
. The only newer version available as a tarball (4.1) is buggy.
. This version closely corresponds to our current default linux_base.
. This version uses the version of popt we have in the tree (unfortunately
it uses an earlier version of beecrypt).
. This version is a lot less work to port than 4.2 (elfutils).
However, I am considering how best this port could be updated to a more
recent version (e.g. 4.1.1 or 4.2, probably the latter).
This wasn't an update to the current rpm port as I haven't done enough
testing of other ports that use rpm with it.
Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
2004-03-05 02:26:10 +00:00
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|