diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2014-10-09 15:55:39 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2014-10-09 15:55:39 +0000 |
commit | 0614be37f613067a8d7a0d757a674d859b463a99 (patch) | |
tree | 7acf2935c3cd77f2d8bb7f120c9df425c1047f6e | |
parent | 79760392a59bee91ee8b4c68065e52adada14ced (diff) | |
download | ports-0614be37f613067a8d7a0d757a674d859b463a99.tar.gz ports-0614be37f613067a8d7a0d757a674d859b463a99.zip |
Notes
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/deltarpm/Makefile | 56 | ||||
-rw-r--r-- | sysutils/deltarpm/distinfo | 2 | ||||
-rw-r--r-- | sysutils/deltarpm/pkg-descr | 7 | ||||
-rw-r--r-- | sysutils/deltarpm/pkg-plist | 17 |
5 files changed, 83 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 53262272c5ee..021eb692a756 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -164,6 +164,7 @@ SUBDIR += ddrescue SUBDIR += debhelper SUBDIR += debootstrap + SUBDIR += deltarpm SUBDIR += deltup SUBDIR += desktop-installer SUBDIR += detach diff --git a/sysutils/deltarpm/Makefile b/sysutils/deltarpm/Makefile new file mode 100644 index 000000000000..f9701e278579 --- /dev/null +++ b/sysutils/deltarpm/Makefile @@ -0,0 +1,56 @@ +# Created by: gahr +# $FreeBSD$ + +PORTNAME= deltarpm +PORTVERSION= 3.6 +CATEGORIES= sysutils +MASTER_SITES= ftp://ftp.suse.com/pub/projects/deltarpm/ + +MAINTAINER= gahr@FreeBSD.org +COMMENT= Tool that generates delta RPMs + +LICENSE= BSD3CLAUSE + +LIB_DEPENDS= librpm.so:${PORTSDIR}/archivers/rpm4 + +USES= gmake python shebangfix tar:bz2 +SHEBANG_FILES= drpmsync + +ALL_TARGET= all +MAKE_ARGS+= prefix=${PREFIX} + +post-patch: + ${REINPLACE_CMD} \ + -e '/prefix=/s|=|?=|' \ + -e '/^CFLAGS/s|$$| -I${LOCALBASE}/include|' \ + -e '/^LDFLAGS/s|$$| -L${LOCALBASE}/lib|' \ + -e '/^PYTHONS/s|= .*$$|= ${PYTHON_CMD}|' \ + -e 's|make |${MAKE_CMD} |g' \ + -e 's|-m 755|-m 755 -s|' \ + -e 's|-s drpmsync|drpmsync|' \ + ${WRKSRC}/${MAKEFILE} + ${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} \ + -e 's|off64_t|off_t|g' \ + -e 's|mkstemp64|mkstemp|g' \ + -e 's|fopen64|fopen|g' \ + -e 's|ftello64|ftello|g' \ + -e 's|pwrite64|pwrite|g' \ + -e 's|pread64|pread|g' \ + -e 's|fseeko64|fseeko|g' \ + -e 's|ftruncate64|ftruncate|g' \ + -e 's|S_ISLINK|S_ISLNK|g' + ${REINPLACE_CMD} -e '8,11d' ${WRKSRC}/applydeltarpm.c + +post-build: + cd ${WRKSRC} && ${CC} -shared -o _deltarpm.so \ + readdeltarpm.o rpmhead.o util.o md5.o cfile.o \ + deltarpmmodule.c \ + `${PYTHON_CMD}-config --cflags` -fPIC \ + -lbz2 -lz -llzma + +post-install: + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/_deltarpm.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + ${INSTALL_DATA} ${WRKSRC}/deltarpm.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +.include <bsd.port.mk> diff --git a/sysutils/deltarpm/distinfo b/sysutils/deltarpm/distinfo new file mode 100644 index 000000000000..0a6f0ce319a3 --- /dev/null +++ b/sysutils/deltarpm/distinfo @@ -0,0 +1,2 @@ +SHA256 (deltarpm-3.6.tar.bz2) = fcc35db53e9913f12cdc013bdf922614ac8ef6fd5e7187e75203be8809d177be +SIZE (deltarpm-3.6.tar.bz2) = 500420 diff --git a/sysutils/deltarpm/pkg-descr b/sysutils/deltarpm/pkg-descr new file mode 100644 index 000000000000..db21d480bb07 --- /dev/null +++ b/sysutils/deltarpm/pkg-descr @@ -0,0 +1,7 @@ +DeltaRPM is a tool that generates RPMs that contains the difference between an +old and a new version of an RPM. This makes it possible to recreate the new RPM +from the deltarpm and the old one. You don't have to have a copy of the old +RPM, as it can also work with installed RPMs. The package also contains tools +for creating and applying delta ISOs. + +WWW: http://freecode.com/projects/deltarpm/ diff --git a/sysutils/deltarpm/pkg-plist b/sysutils/deltarpm/pkg-plist new file mode 100644 index 000000000000..3486a14e89b0 --- /dev/null +++ b/sysutils/deltarpm/pkg-plist @@ -0,0 +1,17 @@ +bin/applydeltaiso +bin/applydeltarpm +bin/combinedeltarpm +bin/drpmsync +bin/fragiso +bin/makedeltaiso +bin/makedeltarpm +bin/rpmdumpheader +%%PYTHON_SITELIBDIR%%/_deltarpm.so +%%PYTHON_SITELIBDIR%%/deltarpm.py +man/man8/applydeltaiso.8.gz +man/man8/applydeltarpm.8.gz +man/man8/combinedeltarpm.8.gz +man/man8/drpmsync.8.gz +man/man8/fragiso.8.gz +man/man8/makedeltaiso.8.gz +man/man8/makedeltarpm.8.gz |