port of rpm 3.0.4. Appears to work correctly so far.

Put into misc to mimic FreeBSD naming scheme.
Extra categories: archivers and emulators.
This commit is contained in:
espie 2000-06-12 18:49:41 +00:00
parent 503505bdc4
commit ad1a64b3d9
14 changed files with 250 additions and 0 deletions

29
misc/rpm/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
DISTNAME= rpm-3.0.4
CATEGORIES= misc archivers emulators
NEED_VERSION= 1.301
# GPL
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
MAINTAINER= espie@openbsd.org
HOMEPAGE= http://www.rpm.org/
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/
LIB_DEPENDS= bz2.::archivers/bzip2
RUN_DEPENDS= gettext::devel/gettext
LIB_DEPENDS+= intl.::devel/gettext
CONFIGURE_STYLE= gnu
# Enforce check for pgp, so no build-time depend is needed
CONFIGURE_ENV= PGPBIN=$(LOCALBASE)/bin/pgp
CONFIGURE_ENV+= varprefix=/var
SEPARATE_BUILD= simple
.include <bsd.port.mk>

3
misc/rpm/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (rpm-3.0.4.tar.gz) = 09799fc36ab61251275dafd912994198
RMD160 (rpm-3.0.4.tar.gz) = 6250bb68b8194119356fa85f7d06e3b56d2b5a57
SHA1 (rpm-3.0.4.tar.gz) = 4ee4c9fb5e3eb5ef78d4383f322204ea85063b59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- Makefile.in.orig Mon Jun 12 20:38:16 2000
+++ Makefile.in Mon Jun 12 20:38:34 2000
@@ -754,7 +754,7 @@ lclint:
lclint ${DEFS} ${INCLUDES} ${rpm_SOURCES}
install-data-local:
- @$(mkinstalldirs) $(DESTDIR)$(varprefix)/lib/rpm
+ @$(mkinstalldirs) $(DESTDIR)$(varprefix)/db/rpm
@rm -f $(DESTDIR)/$(libdir)/rpmrc
@ln -s rpm/rpmrc $(DESTDIR)/$(libdir)/rpmrc
@rm -f $(DESTDIR)/$(libdir)/rpmpopt

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-build_parseChangelog_c,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- build/parseChangelog.c.orig Mon Jun 12 02:00:54 2000
+++ build/parseChangelog.c Mon Jun 12 02:01:11 2000
@@ -84,8 +84,10 @@ static int dateToTimet(const char * date
*secs = mktime(&time);
if (*secs == -1) return -1;
+#ifndef __OpenBSD__
/* adjust to GMT */
*secs += timezone;
+#endif
return 0;
}

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-build_parsePrep_c,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- build/parsePrep.c.orig Mon Jun 12 02:10:49 2000
+++ build/parsePrep.c Mon Jun 12 02:16:15 2000
@@ -4,6 +4,9 @@
#include "system.h"
+#ifdef __OpenBSD__
+#include <libgen.h>
+#endif
#include <rpmbuild.h>
#include <rpmurl.h>

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-lib_rpmio_h,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- lib/rpmio.h.orig Mon Jun 12 01:06:01 2000
+++ lib/rpmio.h Mon Jun 12 01:10:47 2000
@@ -4,7 +4,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
+#ifndef GLOB_APPEND
#include <glob.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-lib_transaction_c,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- lib/transaction.c.orig Mon Jun 12 01:38:08 2000
+++ lib/transaction.c Mon Jun 12 01:38:34 2000
@@ -12,6 +12,10 @@
#include "misc.h"
#include "rpmdb.h"
+#ifdef __OpenBSD__
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
/* XXX FIXME: merge with existing (broken?) tests in system.h */
/* portability fiddles */
#if STATFS_IN_SYS_STATVFS

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-macros_in,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- macros.in.orig Mon Jun 12 20:22:36 2000
+++ macros.in Mon Jun 12 20:22:50 2000
@@ -80,7 +80,7 @@
%_builddir %{_topdir}/BUILD
%_buildshell /bin/sh
%_bzip2bin @BZIP2BIN@
-%_dbpath %{_var}/lib/rpm
+%_dbpath %{_var}/db/rpm
%_rebuilddbpath %{_dbpath}
%_defaultdocdir %{_usr}/doc
#

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-tests_macros_in,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- tests/macros.in.orig Mon Jun 12 20:22:36 2000
+++ tests/macros.in Mon Jun 12 20:23:00 2000
@@ -52,7 +52,7 @@
%_builddir %{_topdir}/BUILD
%_buildshell /bin/sh
%_bzip2bin @BZIP2BIN@
-%_dbpath %{_var}/lib/rpm
+%_dbpath %{_var}/db/rpm
%_defaultdocdir %{_usr}/doc
#
# XXX fixowner, fixgroup, and fixperms are run at the end of hardcoded setup

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-tools_rpmgettext_c,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
--- tools/rpmgettext.c.orig Mon Jun 12 02:19:29 2000
+++ tools/rpmgettext.c Mon Jun 12 02:19:57 2000
@@ -11,6 +11,10 @@
#include "signature.h"
#include "header.h"
+#ifdef __OpenBSD__
+#include <libgen.h>
+#endif
+
#if !defined(HAVE_BASENAME)
extern char *basename (const char *__filename);
#endif

1
misc/rpm/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
redhat package manager

12
misc/rpm/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
RPM is a package management system based on top of cpio.
It supports digital signatures, source and binary packages,
complex dependencies handling, complex installation scripts
and a lot more.
It has its own macro language, and is well-spread in
the Linux world.
The package database is set to /var/db/rpm by default, to conform
with hier(7).
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
lib/libpopt.so.0.0
lib/librpm.so.0.0
@exec [ ! -x /sbin/ldconfig ] || /sbin/ldconfig -m %D/lib
@unexec [ ! -x /sbin/ldconfig ] || /sbin/ldconfig -m %D/lib

96
misc/rpm/pkg/PLIST Normal file
View File

@ -0,0 +1,96 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/06/12 18:49:41 espie Exp $
@pkgcfl rpm2cpio-*
bin/gendiff
bin/rpm
bin/rpm2cpio
include/popt.h
include/rpm/dbindex.h
include/rpm/header.h
include/rpm/misc.h
include/rpm/rpmbuild.h
include/rpm/rpmio.h
include/rpm/rpmlib.h
include/rpm/rpmmacro.h
include/rpm/rpmspec.h
include/rpm/rpmurl.h
include/rpm/stringbuf.h
lib/libpopt.a
lib/libpopt.la
lib/librpm.a
lib/librpm.la
lib/librpmbuild.a
lib/librpmbuild.la
%%SHARED%%
lib/rpm/brp-compress
lib/rpm/brp-redhat
lib/rpm/brp-strip
lib/rpm/brp-strip-comment-note
lib/rpm/check-prereqs
lib/rpm/config.guess
lib/rpm/config.sub
lib/rpm/convertrpmrc.sh
lib/rpm/cpanflute
lib/rpm/find-lang.sh
lib/rpm/find-prov.pl
lib/rpm/find-provides
lib/rpm/find-provides.perl
lib/rpm/find-req.pl
lib/rpm/find-requires
lib/rpm/find-requires.perl
lib/rpm/freshen.sh
lib/rpm/get_magic.pl
lib/rpm/getpo.sh
lib/rpm/http.req
lib/rpm/macros
lib/rpm/magic.prov
lib/rpm/magic.req
lib/rpm/mkinstalldirs
lib/rpm/perl.prov
lib/rpm/perl.req
lib/rpm/rpmdiff
lib/rpm/rpmdiff.cgi
lib/rpm/rpmgettext
lib/rpm/rpmpopt
lib/rpm/rpmputtext
lib/rpm/rpmrc
lib/rpm/u_pkg.sh
lib/rpm/vpkg-provides.sh
lib/rpm/vpkg-provides2.sh
lib/rpmpopt
lib/rpmrc
man/man1/gendiff.1
man/man3/popt.3
man/man8/rpm.8
man/man8/rpm2cpio.8
share/locale/cs/LC_MESSAGES/rpm.mo
share/locale/de/LC_MESSAGES/rpm.mo
share/locale/fi/LC_MESSAGES/rpm.mo
share/locale/fr/LC_MESSAGES/rpm.mo
share/locale/ja/LC_MESSAGES/rpm.mo
share/locale/pl/LC_MESSAGES/rpm.mo
share/locale/pt_BR/LC_MESSAGES/rpm.mo
share/locale/ro/LC_MESSAGES/popt.mo
share/locale/ru/LC_MESSAGES/rpm.mo
share/locale/sk/LC_MESSAGES/popt.mo
share/locale/sk/LC_MESSAGES/rpm.mo
share/locale/sl/LC_MESSAGES/rpm.mo
share/locale/sr/LC_MESSAGES/rpm.mo
share/locale/sv/LC_MESSAGES/rpm.mo
share/locale/tr/LC_MESSAGES/rpm.mo
@exec mkdir -p %D/src/redhat/SRPMS
@dirrm src/redhat/SRPMS
@exec mkdir -p %D/src/redhat/SPECS
@dirrm src/redhat/SPECS
@exec mkdir -p %D/src/redhat/SOURCES
@dirrm src/redhat/SOURCES
@exec mkdir -p %D/src/redhat/RPMS/noarch
@dirrm src/redhat/RPMS/noarch
@exec mkdir -p %D/src/redhat/RPMS/i386
@dirrm src/redhat/RPMS/i386
@dirrm src/redhat/RPMS
@exec mkdir -p %D/src/redhat/BUILD
@dirrm src/redhat/BUILD
@dirrm src/redhat
@dirrm src
@dirrm lib/rpm
@dirrm include/rpm