[28386] trunk/dports/sysutils
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 29 23:26:24 PDT 2007
Revision: 28386
http://trac.macosforge.org/projects/macports/changeset/28386
Author: afb at macports.org
Date: 2007-08-29 23:26:24 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
new port: yet another rpm frontend
Added Paths:
-----------
trunk/dports/sysutils/poldek/
trunk/dports/sysutils/poldek/Portfile
trunk/dports/sysutils/poldek/files/
trunk/dports/sysutils/poldek/files/macports-source.conf
trunk/dports/sysutils/poldek/files/patch-libpolclidek.sym
trunk/dports/sysutils/poldek/files/patch-libpoldek.sym
trunk/dports/sysutils/poldek/files/patch-pm.h
trunk/dports/sysutils/poldek/files/patch-realpath.diff
trunk/dports/sysutils/poldek/files/patch-rpmlog.diff
trunk/dports/sysutils/poldek/files/patch-utillibs.diff
trunk/dports/sysutils/poldek/files/poldek-uri-escape-fix.patch
Added: trunk/dports/sysutils/poldek/Portfile
===================================================================
--- trunk/dports/sysutils/poldek/Portfile (rev 0)
+++ trunk/dports/sysutils/poldek/Portfile 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,52 @@
+# $Id$
+
+PortSystem 1.0
+
+name poldek
+version 0.21-cvs20070703.00
+platforms darwin
+categories sysutils
+maintainers afb at macports.org
+description A full-featured frontend to RPM
+long_description \
+poldek is an RPM package management tool which allows you to easily \
+perform package verification, installation (including system \
+installation from scratch), upgrading, and removal. \
+\
+Program can be used in batch (like apt-get from Debian's \
+APT) or interactive mode. The interactive mode puts you into a \
+readline interface with command line autocompletion and history, \
+similar to the shell mode of Perl's CPAN.
+homepage http://poldek.pld-linux.org/
+master_sites ${homepage}download/snapshots/
+use_bzip2 yes
+checksums md5 dae23dec560fad954abf157fd250e4c3
+
+depends_lib port:rpm port:argp-standalone port:ncurses \
+ lib:libpcre:pcre lib:libcheck:check lib:libxml2:libxml2
+
+
+patchfiles poldek-uri-escape-fix.patch patch-pm.h \
+ patch-utillibs.diff patch-realpath.diff \
+ patch-rpmlog.diff patch-libpoldek.sym patch-libpolclidek.sym
+use_autoconf yes
+post-patch { system "aclocal -I${prefix}/share/aclocal" }
+
+configure.cppflags-append "-I${prefix}/include/rpm"
+post-configure { reinplace "s;-largp;;" ${worksrcpath}/cli/Makefile }
+
+# build system keeps clobbering the changes done to Makefile, due to changed config.status
+pre-build {
+ system "cd ${worksrcpath}; ${build.cmd} || true"
+ reinplace "s;-largp;;" ${worksrcpath}/cli/Makefile
+ # some other lame thing forgets to replace a var:
+ ln -s mkinstalldirs ${worksrcpath}/@MKINSTALLDIRS@
+}
+
+post-destroot {
+ xinstall -d ${destroot}${prefix}/etc/poldek
+ copy ${filespath}/macports-source.conf ${destroot}${prefix}/etc/poldek/macports-source.conf
+ reinplace "s|_distro = pld|_distro = macports|" ${destroot}${prefix}/etc/poldek/poldek.conf
+ reinplace "s|@@ARCH@@|${os.arch}|g" ${destroot}${prefix}/etc/poldek/macports-source.conf
+ reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/poldek/macports-source.conf
+}
Property changes on: trunk/dports/sysutils/poldek/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/sysutils/poldek/files/macports-source.conf
===================================================================
--- trunk/dports/sysutils/poldek/files/macports-source.conf (rev 0)
+++ trunk/dports/sysutils/poldek/files/macports-source.conf 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,5 @@
+[source]
+name = macports
+type = metadata
+url = http://macports.org/packages/@@PLATFORM@@/@@ARCH@@/RPMS/
+
Added: trunk/dports/sysutils/poldek/files/patch-libpolclidek.sym
===================================================================
--- trunk/dports/sysutils/poldek/files/patch-libpolclidek.sym (rev 0)
+++ trunk/dports/sysutils/poldek/files/patch-libpolclidek.sym 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,10 @@
+--- cli/libpoclidek.sym.orig 2007-06-30 09:33:41.000000000 +0200
++++ cli/libpoclidek.sym 2007-08-29 23:14:51.000000000 +0200
+@@ -4,7 +4,6 @@ cmdctx_printf_c
+ pkg_dent_add_dir
+ pkg_dent_add_pkg
+ pkg_dent_add_pkgs
+-pkg_dent_adddir
+ pkg_dent_cmp
+ pkg_dent_cmp_bday
+ pkg_dent_cmp_btime
Added: trunk/dports/sysutils/poldek/files/patch-libpoldek.sym
===================================================================
--- trunk/dports/sysutils/poldek/files/patch-libpoldek.sym (rev 0)
+++ trunk/dports/sysutils/poldek/files/patch-libpoldek.sym 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,48 @@
+--- libpoldek.sym.orig 2007-06-30 14:36:41.000000000 +0200
++++ libpoldek.sym 2007-08-29 23:06:21.000000000 +0200
+@@ -94,12 +94,10 @@
+ pkg_set_arch
+ pkg_set_os
+ pkg_snprintf
+-pkg_snprintf_epoch_s
+ pkg_snprintf_s
+ pkg_snprintf_s0
+ pkg_snprintf_s1
+ pkg_strbtime
+-pkg_strcmp_name_evr
+ pkg_stritime
+ pkg_strsize
+ pkg_uinf
+@@ -110,7 +108,6 @@
+ pkgdb_get_conflicted_dbpkgs
+ pkgdb_get_file_conflicted_dbpkgs
+ pkgdb_get_obsoletedby_pkg
+-pkgdb_get_obsoletedby_pkg_nevr
+ pkgdb_get_pkgs_requires_capn
+ pkgdb_get_provides_dbpkgs
+ pkgdb_install
+@@ -188,7 +185,6 @@
+ pm_get_pmcaps
+ pm_load_package
+ pm_machine_score
+-pm_module_init
+ pm_new
+ pm_pminstall
+ pm_pmuninstall
+@@ -220,8 +216,6 @@
+ poldek_log_add_appender
+ poldek_log_set_appender
+ poldek_log_i
+-poldek_log_tty
+-poldek_meminf
+ poldek_new
+ poldek_search_avail_packages
+ poldek_set_verbose
+@@ -273,7 +267,6 @@
+ poldek_vlog
+ poldeklib_destroy
+ poldeklib_init
+-rpmlog
+ sigint_destroy
+ sigint_init
+ sigint_pop
Added: trunk/dports/sysutils/poldek/files/patch-pm.h
===================================================================
--- trunk/dports/sysutils/poldek/files/patch-pm.h (rev 0)
+++ trunk/dports/sysutils/poldek/files/patch-pm.h 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,11 @@
+--- pm/pm.h.orig 2007-06-21 20:41:58.000000000 +0200
++++ pm/pm.h 2007-08-29 22:41:49.000000000 +0200
+@@ -36,7 +36,7 @@
+
+ int pm_verify_signature(struct pm_ctx *ctx, const char *path, unsigned flags);
+
+-struct pm_dbrec *dbrec;
++extern struct pm_dbrec *dbrec;
+ typedef int (*pkgdb_filter_fn) (struct pkgdb *db,
+ const struct pm_dbrec *dbrec, void *arg);
+
Property changes on: trunk/dports/sysutils/poldek/files/patch-pm.h
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/sysutils/poldek/files/patch-realpath.diff
===================================================================
--- trunk/dports/sysutils/poldek/files/patch-realpath.diff (rev 0)
+++ trunk/dports/sysutils/poldek/files/patch-realpath.diff 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,14 @@
+--- misc.c.orig 2007-07-02 20:30:48.000000000 +0200
++++ misc.c 2007-08-29 22:11:51.000000000 +0200
+@@ -530,7 +530,10 @@
+ #ifdef HAVE_CANONICALIZE_FILE_NAME /* have safe GNU ext? */
+ return realpath(path, NULL);
+ #else
+-# error "missing safe realpath()"
++ {
++ char *buf = malloc(PATH_MAX);
++ if (buf) return realpath(path, buf);
++ }
+ #endif
+ return NULL;
+ }
Added: trunk/dports/sysutils/poldek/files/patch-rpmlog.diff
===================================================================
--- trunk/dports/sysutils/poldek/files/patch-rpmlog.diff (rev 0)
+++ trunk/dports/sysutils/poldek/files/patch-rpmlog.diff 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,11 @@
+--- pm/rpm/rpm.c.orig 2007-08-29 23:06:52.000000000 +0200
++++ pm/rpm/rpm.c 2007-08-29 23:07:02.000000000 +0200
+@@ -331,7 +331,7 @@ struct pkgdir *pm_rpm_db_to_pkgdir(void
+ }
+
+
+-#if defined HAVE_RPMLOG && !defined ENABLE_STATIC
++#if defined HAVE_RPMLOG && !defined ENABLE_STATIC && !(defined __APPLE && defined __MACH__)
+ /* XXX hack: rpmlib dumps messges to stdout only... (AFAIK) */
+ void rpmlog(int prii, const char *fmt, ...)
+ {
Added: trunk/dports/sysutils/poldek/files/patch-utillibs.diff
===================================================================
--- trunk/dports/sysutils/poldek/files/patch-utillibs.diff (rev 0)
+++ trunk/dports/sysutils/poldek/files/patch-utillibs.diff 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,50 @@
+--- ./configure.in.orig 2007-07-03 00:05:52.000000000 +0200
++++ ./configure.in 2007-08-29 21:19:06.000000000 +0200
+@@ -360,11 +360,16 @@ dnl - util.h (NetBSD)
+ AC_CHECK_FUNC(openpty, have_openpty=yes, [
+ AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)])
+
++UTILLIBS=
+ if test "${have_openpty}." = "yes."; then
+ AC_DEFINE([HAVE_OPENPTY],1,[defined if openpty() is avialable])
+ AC_CHECK_HEADERS([pty.h libutil.h util.h], break)
+- test "$need_libutil" = "yes" && LIBS="-lutil $LIBS"
++ if test "$need_libutil" = "yes" ; then
++ UTILLIBS="-lutil"
++ LIBS="$UTILLIBS $LIBS"
++ fi
+ fi
++AC_SUBST(UTILLIBS)
+
+ AC_CHECK_FUNCS(EVP_DigestInit,,
+ [AC_CHECK_LIB(crypto, EVP_DigestInit,,
+--- ./vfile/Makefile.am.orig 2007-07-02 20:30:49.000000000 +0200
++++ ./vfile/Makefile.am 2007-08-29 21:21:48.000000000 +0200
+@@ -23,7 +23,7 @@ pkgincludedir = $(includedir)/vfile
+ pkginclude_HEADERS = vfile.h p_open.h vopen3.h
+
+ noinst_PROGRAMS = vfget test_vopen3
+-TEST_LDADDS = libvfile.la -lutil
++TEST_LDADDS = libvfile.la @UTILLIBS@
+
+ vfget_SOURCES = vfget.c
+ vfget_LDADD = $(TEST_LDADDS)
+--- ./vfile/Makefile.in.orig 2007-07-02 20:31:01.000000000 +0200
++++ ./vfile/Makefile.in 2007-08-29 21:19:06.000000000 +0200
+@@ -190,6 +190,7 @@ TRURL_DIR = @TRURL_DIR@
+ TRURL_INCLUDE = @TRURL_INCLUDE@
+ TRURL_LDFLAG = @TRURL_LDFLAG@
+ USE_NLS = @USE_NLS@
++UTILLIBS = @UTILLIBS@
+ VERSION = @VERSION@
+ VERSION_CVSTAG = @VERSION_CVSTAG@
+ WITH_METADATA_REPOSITORY_FALSE = @WITH_METADATA_REPOSITORY_FALSE@
+@@ -260,7 +261,7 @@ libvfile_la_SOURCES = vfile.c fetch.c vf
+
+ libvfile_la_LIBADD = vfff/libvfff.la
+ pkginclude_HEADERS = vfile.h p_open.h vopen3.h
+-TEST_LDADDS = libvfile.la -lutil
++TEST_LDADDS = libvfile.la @UTILLIBS@
+ vfget_SOURCES = vfget.c
+ vfget_LDADD = $(TEST_LDADDS)
+ test_vopen3_SOURCES = test_vopen3.c
Added: trunk/dports/sysutils/poldek/files/poldek-uri-escape-fix.patch
===================================================================
--- trunk/dports/sysutils/poldek/files/poldek-uri-escape-fix.patch (rev 0)
+++ trunk/dports/sysutils/poldek/files/poldek-uri-escape-fix.patch 2007-08-30 06:26:24 UTC (rev 28386)
@@ -0,0 +1,19 @@
+--- vfile/vfff/http.c.orig 2007-07-16 22:05:47.000000000 +0200
++++ vfile/vfff/http.c 2007-07-16 22:06:10.000000000 +0200
+@@ -123,16 +123,8 @@
+
+ static char *make_req_line(char *buf, int size, const char *method, const char *uri)
+ {
+- char *escaped = NULL;
+-
+- if ((escaped = vfff_uri_escape(uri)))
+- uri = escaped;
+-
+ n_snprintf(buf, size, "%s %s HTTP/1.1\r\n", method, uri);
+
+- if (escaped)
+- free(escaped);
+-
+ return buf;
+ }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070829/0bb993bb/attachment.html
More information about the macports-changes
mailing list