diff --git a/app-admin/reprepro/ChangeLog b/app-admin/reprepro/ChangeLog new file mode 100644 index 00000000..47fd85d2 --- /dev/null +++ b/app-admin/reprepro/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-admin/reprepro +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 25 Jul 2008; Mario Fetka + +files/reprepro-3.5.2-db-4_5-1.patch, + +files/reprepro-3.5.2-gpgme-header-check-1.patch, +metadata.xml, + +reprepro-3.5.2.ebuild: + Initial checkin + diff --git a/app-admin/reprepro/Manifest b/app-admin/reprepro/Manifest new file mode 100644 index 00000000..401c9e75 --- /dev/null +++ b/app-admin/reprepro/Manifest @@ -0,0 +1,7 @@ +AUX reprepro-3.5.2-db-4_5-1.patch 2896 RMD160 bc71fcea4b121181ecf241edb666460f685ef4ab SHA1 a6ffc122cc8c1e6b749ab16f7815a065cec12ddd SHA256 8233b53505fcc61dd8c357d181b462c6c7dc7bbf36c4fc3d7723946db60d2c60 +AUX reprepro-3.5.2-gpgme-header-check-1.patch 2169 RMD160 56524920aedf780765683cfebf2f93e9c326bad2 SHA1 4afea249de8c2ec8208da091cf5826dca06707cf SHA256 c2e9a12a8e640047782b9bd4158abbe0fce8d887d9e2df7c3bbe88bb6eb63683 +DIST 3.5.2.orig.tar.gz 453961 RMD160 92ab8f1b056daabe35e8a72d626a8da6552798fd SHA1 594879d201359a7ed0372e2a570a49ca2f92723b SHA256 3cd911a899aed7aa7783aed502a9dcb7dcd4531ec32752738fbb0ca42f8d94d7 +DIST reprepro_3.5.2.orig.tar.gz 453961 RMD160 92ab8f1b056daabe35e8a72d626a8da6552798fd SHA1 594879d201359a7ed0372e2a570a49ca2f92723b SHA256 3cd911a899aed7aa7783aed502a9dcb7dcd4531ec32752738fbb0ca42f8d94d7 +EBUILD reprepro-3.5.2.ebuild 955 RMD160 e5d5bdc1af02a9700d34d60d42e06180ca054b18 SHA1 dbce6986d49b123f0610b37326c1a2e1017de37d SHA256 7115445637d74ea17557593dbb8b12a2b937a177b229c55ec711aa18c480de8b +MISC ChangeLog 319 RMD160 32a16a98194d184acdac1ea9b7ac46e103a6d99f SHA1 737b2467923836909c94084ea576c1e3957f46f9 SHA256 04fff853cbe388f652789fbd892c0151db3830f947d2aacb892c99ae70ae712b +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/app-admin/reprepro/files/reprepro-3.5.2-db-4_5-1.patch b/app-admin/reprepro/files/reprepro-3.5.2-db-4_5-1.patch new file mode 100644 index 00000000..bcc0493d --- /dev/null +++ b/app-admin/reprepro/files/reprepro-3.5.2-db-4_5-1.patch @@ -0,0 +1,76 @@ +Submitted By: Mario Fetka (mario-fetka at gmx dot at) +Date: 2008-07-25 +Initial Package Version: 2.2.2 +Origin: me +Upstream Status: Unknown +Description: Add Support for berkerly db 4.5 + +diff -Naur reprepro-3.5.2.orig/configure.ac reprepro-3.5.2/configure.ac +--- reprepro-3.5.2.orig/configure.ac 2008-06-27 15:31:23.000000000 +0000 ++++ reprepro-3.5.2/configure.ac 2008-07-25 20:41:48.000000000 +0000 +@@ -26,7 +26,7 @@ + DBCPPFLAGS="" + AH_TEMPLATE([LIBDB_VERSION],[variant of libdb used]) + AC_ARG_WITH(libdb, +-[ --with-libdb=path|4.4|4.3|3 Give prefix of libdb-4.3 or older version to use],[dnl ++[ --with-libdb=path|4.6|4.5|4.4|4.3|3 Give prefix of libdb-4.3 or older version to use],[dnl + case "$withval" in + no) + AC_MSG_ERROR(["Cannot compile without libdb"]); +@@ -40,6 +40,9 @@ + 4.4) + DB_WANT_VERSION=4.4 + ;; ++ 4.5) ++ DB_WANT_VERSION=4.5 ++ ;; + 4.6) + DB_WANT_VERSION=4.6 + ;; +@@ -83,6 +86,12 @@ + elif test "$DB_WANT_VERSION" != "4.4" ; then + AC_MSG_ERROR([Found libdb major version $DB_VERSION_MAJOR.$DB_VERSION_MINOR, need $DB_WANT_VERSION]) + fi ++elif test "x$DB_VERSION_MAJOR" = "x4" -a "x$DB_VERSION_MINOR" = "x5" ; then ++ if test "$DB_WANT_VERSION" = "any" ; then ++ DB_WANT_VERSION=4.5 ++ elif test "$DB_WANT_VERSION" != "4.5" ; then ++ AC_MSG_ERROR([Found libdb major version $DB_VERSION_MAJOR.$DB_VERSION_MINOR, need $DB_WANT_VERSION]) ++ fi + elif test "x$DB_VERSION_MAJOR" = "x4" -a "x$DB_VERSION_MINOR" = "x6" ; then + if test "$DB_WANT_VERSION" = "any" ; then + DB_WANT_VERSION=4.6 +@@ -91,7 +100,7 @@ + fi + else + AC_MSG_ERROR([Unsupported libdb major $DB_VERSION_MAJOR minor $DB_VERSION_MINOR +-Only 4.3 (stronly recommended) or 3.2 or 4.4 or 4.6 are supported]) ++Only 4.3 (stronly recommended) or 3.2 or 4.4 or 4.5 or 4.6 are supported]) + fi + + # now we have a header with the expected version, check for the library: +@@ -102,6 +111,12 @@ + DBLIBS="-ldb-4.6 $DBLIBS" + ],[AC_MSG_ERROR(["no libdb-4.6 found"])],[$DBLIBS]) + ;; ++4.5) ++ AC_CHECK_LIB(db-4.5,db_create,[dnl ++ AC_DEFINE_UNQUOTED(AS_TR_CPP(LIBDB_VERSION),45) ++ DBLIBS="-ldb-4.5 $DBLIBS" ++ ],[AC_MSG_ERROR(["no libdb-4.5 found"])],[$DBLIBS]) ++;; + 4.4) + AC_CHECK_LIB(db-4.4,db_create,[dnl + AC_DEFINE_UNQUOTED(AS_TR_CPP(LIBDB_VERSION),44) +diff -Naur reprepro-3.5.2.orig/database.c reprepro-3.5.2/database.c +--- reprepro-3.5.2.orig/database.c 2008-06-06 21:00:21.000000000 +0000 ++++ reprepro-3.5.2/database.c 2008-07-25 20:42:32.000000000 +0000 +@@ -245,6 +245,8 @@ + + #if LIBDB_VERSION == 46 + #define DB_OPEN(database,filename,name,type,flags) database->open(database,NULL,filename,name,type,flags,0664) ++#elif LIBDB_VERSION == 45 ++#define DB_OPEN(database,filename,name,type,flags) database->open(database,NULL,filename,name,type,flags,0664) + #elif LIBDB_VERSION == 44 + #define DB_OPEN(database,filename,name,type,flags) database->open(database,NULL,filename,name,type,flags,0664) + #elif LIBDB_VERSION == 43 diff --git a/app-admin/reprepro/files/reprepro-3.5.2-gpgme-header-check-1.patch b/app-admin/reprepro/files/reprepro-3.5.2-gpgme-header-check-1.patch new file mode 100644 index 00000000..ddd8c474 --- /dev/null +++ b/app-admin/reprepro/files/reprepro-3.5.2-gpgme-header-check-1.patch @@ -0,0 +1,46 @@ +Submitted By: Mario Fetka (mario-fetka at gmx dot at) +Date: 2008-07-25 +Initial Package Version: 2.2.2 +Origin: hron@hronszoft.dyndns.biz +Upstream Status: never accepted +Description: find gpgme headers + +diff -Naur reprepro-3.5.2.orig/configure.ac reprepro-3.5.2/configure.ac +--- reprepro-3.5.2.orig/configure.ac 2008-06-27 15:31:23.000000000 +0000 ++++ reprepro-3.5.2/configure.ac 2008-07-25 20:57:28.000000000 +0000 +@@ -134,20 +134,20 @@ + no) + ;; + yes) +- AC_CHECK_HEADER(gpgme.h,,[AC_MSG_ERROR(["no gpgme.h found"])]) ++ AC_CHECK_HEADER(gpgme/gpgme.h,,[AC_MSG_ERROR(["no gpgme/gpgme.h found"])]) + AC_CHECK_LIB(gpg-error,gpg_strsource,,[AC_MSG_ERROR(["no libgpg-error found"])],) + AC_CHECK_LIB(gpgme,gpgme_get_protocol_name,,[AC_MSG_ERROR(["no libgpgme found (need at least 0.4.1)"])],) + ;; + *) + CPPFLAGS="$CPPFLAGS -I$withval/include" + LIBS="$LIBS -L$withval/lib" +- AC_CHECK_HEADER(gpgme.h,,[AC_MSG_ERROR(["no gpgme.h found"])]) ++ AC_CHECK_HEADER(gpgme/gpgme.h,,[AC_MSG_ERROR(["no gpgme/gpgme.h found"])]) + AC_CHECK_LIB(gpg-error,gpg_strsource,,[AC_MSG_ERROR(["no libgpg-error found"])],) + AC_CHECK_LIB(gpgme,gpgme_get_protocol_name,,[AC_MSG_ERROR(["no libgpgme found (need at least 0.4.1)"])],) + ;; + esac + ],[dnl default is to behave like yes (for libgpgme only) +- AC_CHECK_HEADER(gpgme.h,,[AC_MSG_ERROR(["no gpgme.h found (to disable run with --without-libgpgme)"])]) ++ AC_CHECK_HEADER(gpgme/gpgme.h,,[AC_MSG_ERROR(["no gpgme/gpgme.h found (to disable run with --without-libgpgme)"])]) + AC_CHECK_LIB(gpg-error,gpg_strsource,,[AC_MSG_ERROR(["no libgpg-error found (to disable run with --without-libgpgme)"])],) + AC_CHECK_LIB(gpgme,gpgme_get_protocol_name,,[AC_MSG_ERROR(["did not find libgpgme versoion 0.4.1 or later (to disable run with --without-libgpgme)"])],) + ]) +diff -Naur reprepro-3.5.2.orig/signature.c reprepro-3.5.2/signature.c +--- reprepro-3.5.2.orig/signature.c 2008-03-06 16:14:55.000000000 +0000 ++++ reprepro-3.5.2/signature.c 2008-07-25 20:57:43.000000000 +0000 +@@ -26,7 +26,7 @@ + #include + #include + #ifdef HAVE_LIBGPGME +-#include ++#include + #endif + #include "globals.h" + #include "error.h" diff --git a/app-admin/reprepro/metadata.xml b/app-admin/reprepro/metadata.xml new file mode 100644 index 00000000..7e328698 --- /dev/null +++ b/app-admin/reprepro/metadata.xml @@ -0,0 +1,5 @@ + + + +maintainer-wanted + diff --git a/app-admin/reprepro/reprepro-3.5.2.ebuild b/app-admin/reprepro/reprepro-3.5.2.ebuild new file mode 100644 index 00000000..74b1582a --- /dev/null +++ b/app-admin/reprepro/reprepro-3.5.2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools + +SRC_URI="mirror://debian/pool/main/r/${PN}/${PN}_${PV}.orig.tar.gz + http://alioth.debian.org/frs/download.php/2484/${PV}.orig.tar.gz" +DESCRIPTION="Debian repository creator and maintainer application" +HOMEPAGE="http://packages.debian.org/reprepro" +DEPEND="app-arch/bzip2 app-arch/gzip app-arch/libarchive app-crypt/gpgme >=sys-libs/db-4.3" +KEYWORDS="~x86 ~amd64" +IUSE="bzip2" +LICENSE="GPL-2" +SLOT="0" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-gpgme-header-check-1.patch + epatch ${FILESDIR}/${P}-db-4_5-1.patch + cd ${S} + eautoreconf +} + +src_compile() { + local myconf="--with-libarchive=yes" + use bzip2 && myconf="${myconf} --with-libbz2=yes" || myconf="${myconf} --with-libbz2=no" + econf ${myconf} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR=${D} install +}