mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
update
This commit is contained in:
parent
69d010d437
commit
7e07f77eb4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331479
@ -6,19 +6,19 @@ PORTVERSION= 4.11.1
|
||||
CATEGORIES= archivers
|
||||
MASTER_SITES= http://rpm.org/releases/rpm-${PORTVERSION:R}.x/ \
|
||||
ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-${PORTVERSION:E}.x/
|
||||
PKGNAMESUFFIX= 4
|
||||
|
||||
MAINTAINER= johans@FreeBSD.org
|
||||
COMMENT= The RPM Package Manager
|
||||
|
||||
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \
|
||||
nss3:${PORTSDIR}/security/nss
|
||||
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt \
|
||||
libnss3.so:${PORTSDIR}/security/nss
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
|
||||
|
||||
OPTIONS_DEFINE= PYTHON
|
||||
OPTIONS_DEFAULT=PYTHON
|
||||
|
||||
NO_STAGE= yes
|
||||
USES= gmake
|
||||
USES= gmake shebangfix
|
||||
USE_AUTOTOOLS= libtool
|
||||
USE_BZIP2= yes
|
||||
USE_LUA= 5.1+
|
||||
@ -28,6 +28,13 @@ GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
LATEST_LINK= rpm4
|
||||
CONFLICTS_INSTALL= rpm-[35].*
|
||||
SHEBANG_FILES= scripts/brp-python-bytecompile scripts/check-prereqs \
|
||||
scripts/check-rpaths-worker scripts/pythondeps.sh \
|
||||
scripts/mono-find-requires scripts/mono-find-provides \
|
||||
scripts/pkgconfigdeps.sh scripts/fontconfig.prov \
|
||||
scripts/rpmdb_loadcvt \
|
||||
scripts/perl.prov scripts/perl.req scripts/perldeps.pl \
|
||||
scripts/osgideps.pl scripts/tcl.req
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include \
|
||||
-I${LOCALBASE}/include/nspr -I${LOCALBASE}/include/nss/nss \
|
||||
@ -42,6 +49,8 @@ CONFIGURE_ARGS+=--with-external-db \
|
||||
--without-javaglue \
|
||||
LUA_CFLAGS=-I${LUA_INCDIR} \
|
||||
LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
|
||||
|
||||
PORTDOCS= *
|
||||
PLIST_SUB+= VERSION=${PORTVERSION}
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
@ -52,6 +61,7 @@ USE_PYTHON= 2.6+
|
||||
PLIST_SUB+= PYTHON=""
|
||||
CPPFLAGS+= -I${PYTHON_INCLUDEDIR}
|
||||
LDFLAGS+= -L${PYTHON_LIBDIR}
|
||||
SHEBANG_FILES+= python/rpm/transaction.py
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-python
|
||||
PLIST_SUB+= PYTHON="@comment "
|
||||
@ -65,31 +75,8 @@ CONFIGURE_ARGS+=--disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
MANLANG= "" ja fr pl ru ko sk
|
||||
MAN1_EN= gendiff.1
|
||||
MAN8_EN= rpm.8 rpm2cpio.8 rpmbuild.8 rpmdeps.8 rpmgraph.8 \
|
||||
rpmdb.8 rpmkeys.8 rpmsign.8 rpmspec.8
|
||||
MAN8_JA= rpm.8 rpm2cpio.8 rpmbuild.8 rpmgraph.8
|
||||
MAN8_FR= rpm.8
|
||||
MAN8_PL= rpm.8 rpm2cpio.8 rpmbuild.8 rpmdeps.8 rpmgraph.8
|
||||
MAN8_RU= rpm.8 rpm2cpio.8
|
||||
MAN8_KO= rpm.8 rpm2cpio.8
|
||||
MAN8_SK= rpm.8
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 800502
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-rpmio_rpmsq.c
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
|
||||
LIB_DEPENDS+= lzma:${PORTSDIR}/archivers/xz
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e '/^pkgconfigdir/s:/:data/:' \
|
||||
-e 's:\.\./\.\./bin/::' ${WRKSRC}/Makefile.in
|
||||
@ -99,14 +86,17 @@ post-patch:
|
||||
${WRKSRC}/system.h
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
# Install documentation
|
||||
${MKDIR} ${DOCSDIR}/librpm/html
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/librpm/html
|
||||
cd ${WRKSRC}/doc/librpm/html && ${FIND} . \
|
||||
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} \
|
||||
${DOCSDIR}/librpm/html/
|
||||
${STAGEDIR}${DOCSDIR}/librpm/html/
|
||||
.endif
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librpm*.so.* \
|
||||
${STAGEDIR}${PREFIX}/lib/rpm-plugins/*.so
|
||||
.if ${PORT_OPTIONS:MPYTHON}
|
||||
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/rpm/*.so
|
||||
.endif
|
||||
# Run package installation script
|
||||
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,28 +0,0 @@
|
||||
--- rpmio/rpmsq.c.orig 2012-06-17 22:38:37.000000000 +0200
|
||||
+++ rpmio/rpmsq.c 2012-06-17 22:38:29.000000000 +0200
|
||||
@@ -39,6 +39,25 @@
|
||||
{ -1, NULL },
|
||||
};
|
||||
|
||||
+int
|
||||
+sighold(int sig)
|
||||
+{
|
||||
+ sigset_t set;
|
||||
+
|
||||
+ sigemptyset(&set);
|
||||
+ sigaddset(&set, sig);
|
||||
+ return (_sigprocmask(SIG_BLOCK, &set, NULL));
|
||||
+}
|
||||
+int
|
||||
+sigrelse(int sig)
|
||||
+{
|
||||
+ sigset_t set;
|
||||
+
|
||||
+ sigemptyset(&set);
|
||||
+ sigaddset(&set, sig);
|
||||
+ return (_sigprocmask(SIG_UNBLOCK, &set, NULL));
|
||||
+}
|
||||
+
|
||||
int rpmsqIsCaught(int signum)
|
||||
{
|
||||
return sigismember(&rpmsqCaught, signum);
|
@ -263,29 +263,6 @@ libdata/pkgconfig/rpm.pc
|
||||
@dirrm lib/rpm/platform
|
||||
@dirrm lib/rpm
|
||||
@dirrm include/rpm
|
||||
@dirrmtry src/portbld/SRPMS
|
||||
@dirrmtry src/portbld/SPECS
|
||||
@dirrmtry src/portbld/SOURCES
|
||||
@dirrmtry src/portbld/RPMS/x86_64
|
||||
@dirrmtry src/portbld/RPMS/sparcv9
|
||||
@dirrmtry src/portbld/RPMS/sparc64
|
||||
@dirrmtry src/portbld/RPMS/sparc
|
||||
@dirrmtry src/portbld/RPMS/ppc64
|
||||
@dirrmtry src/portbld/RPMS/ppc
|
||||
@dirrmtry src/portbld/RPMS/noarch
|
||||
@dirrmtry src/portbld/RPMS/ia64
|
||||
@dirrmtry src/portbld/RPMS/i686
|
||||
@dirrmtry src/portbld/RPMS/i586
|
||||
@dirrmtry src/portbld/RPMS/i486
|
||||
@dirrmtry src/portbld/RPMS/i386
|
||||
@dirrmtry src/portbld/RPMS/athlon
|
||||
@dirrmtry src/portbld/RPMS/amd64
|
||||
@dirrmtry src/portbld/RPMS/alphaev6
|
||||
@dirrmtry src/portbld/RPMS/alpha
|
||||
@dirrmtry src/portbld/RPMS
|
||||
@dirrmtry src/portbld/BUILD
|
||||
@dirrmtry src/portbld
|
||||
@dirrmtry src
|
||||
%%NLS%%@dirrmtry share/locale/sr@latin/LC_MESSAGES
|
||||
%%NLS%%@dirrmtry share/locale/sr@latin
|
||||
%%NLS%%@dirrmtry share/locale/te/LC_MESSAGES
|
||||
|
Loading…
Reference in New Issue
Block a user