summaryrefslogtreecommitdiff
blob: 8be1d3c6ffb0cc3023fb1d57eac01977389ee606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-3.0.5.ebuild,v 1.2 2000/09/14 00:34:54 achim Exp $

P=rpm-3.0.5
A="${P}.tar.gz"
S=${WORKDIR}/${P}
DESCRIPTION="Red Hat Package Management Utils"
SRC_URI="ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/${A}"
HOMEPAGE="http://www.rpm.org/"


src_compile() {
    cd ${S}
    ./configure --prefix=/usr --with-catgets
    make
}

src_install() {
    make DESTDIR=${D} install
    mv ${D}/bin/rpm ${D}/usr/bin
    rm -rf ${D}/bin
    if [ -z "$DBUG" ]
    then
        strip ${D}/usr/bin/*
    #    strip --strip-unneeded ${D}/usr/lib/*.so*
    fi
    prepman
    for i in ja pl ru
    do
      gzip -9 ${D}/usr/man/$i/man8/*.8
    done
    cd ${S}
    dodoc CHANGES COPYING CREDITS GROUPS README* RPM* TODO
}

pkg_postinst() {
  ${ROOT}/usr/bin/rpm --initdb --root=${ROOT}
}