pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/overnet Avoid using RPMFILES, which is not availab...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a40f01ff843f
branches:  trunk
changeset: 486003:a40f01ff843f
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Dec 21 01:48:19 2004 +0000

description:
Avoid using RPMFILES, which is not available on Linux.  Instead, run
rpm2pkg directly.  No more dynamic PLIST.

Bump PKGREVISION due to PLIST changes.

diffstat:

 net/overnet/Makefile |  26 ++++++++++++++++++++------
 net/overnet/PLIST    |   6 +++++-
 net/overnet/distinfo |   6 +++---
 3 files changed, 28 insertions(+), 10 deletions(-)

diffs (78 lines):

diff -r fbaa93317e01 -r a40f01ff843f net/overnet/Makefile
--- a/net/overnet/Makefile      Tue Dec 21 00:21:56 2004 +0000
+++ b/net/overnet/Makefile      Tue Dec 21 01:48:19 2004 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.6 2004/12/21 00:21:56 minskim Exp $
+# $NetBSD: Makefile,v 1.7 2004/12/21 01:48:19 minskim Exp $
 #
 
 DISTNAME=      overnetclc-1.0.1
 PKGNAME=       ${DISTNAME:C/clc//}
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  http://www.zen18864.zen.co.uk/overnet/1.0.1/
 DISTFILES=     ${DISTNAME}-1.i386_compat.rpm
@@ -11,14 +12,15 @@
 HOMEPAGE=      http://www.overnet.com/
 COMMENT=       Peer-to-peer file sharing client (binary pkg)
 
+BUILD_DEPENDS+=        rpm2pkg-[0-9]*:../../pkgtools/rpm2pkg
+
 WRKSRC=                ${WRKDIR}
 EXTRACT_ONLY=  # empty
 NO_CONFIGURE=  # defined
 NO_BUILD=      # defined
-PLIST_SRC+=    ${WRKDIR}/PLIST_DYNAMIC
-PLIST_SUBST+=  EMULSUBDIR=${EMULSUBDIR}
+CHECK_SHLIBS=  no
 
-RPMFILES=      ${DISTFILES}
+EVAL_PREFIX=   RPM2PKGDIR=rpm2pkg
 
 ONLY_FOR_PLATFORM=     Linux-*-i[3-6]86 NetBSD-*-i386
 
@@ -28,8 +30,20 @@
 DEPENDS+=      suse_compat>=7.3:../../emulators/${SUSE_DIR_PREFIX}_compat
 .endif
 
-post-install:
-       ${LN} -fs ../${EMULSUBDIR}/usr/bin/overnetclc ${PREFIX}/bin
+do-extract:
+       ${RPM2PKGDIR}/sbin/rpm2pkg -d ${WRKDIR}                         \
+               ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKDIR}/usr/bin/overnetclc ${PREFIX}/bin
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/overnetclc
+.for f in ChangeLog LISEZMOI README
+       ${INSTALL_DATA} ${WRKDIR}/usr/share/doc/overnetclc/${f}         \
+               ${PREFIX}/share/doc/overnetclc
+.endfor
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/overnetclc
+       ${INSTALL_DATA} ${WRKSRC}/usr/share/overnetclc/contact.dat      \
+               ${PREFIX}/share/overnetclc
 
 .include "../../emulators/suse_linux/Makefile.application"
 .include "../../mk/bsd.pkg.mk"
diff -r fbaa93317e01 -r a40f01ff843f net/overnet/PLIST
--- a/net/overnet/PLIST Tue Dec 21 00:21:56 2004 +0000
+++ b/net/overnet/PLIST Tue Dec 21 01:48:19 2004 +0000
@@ -1,2 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2004/12/19 11:14:51 minskim Exp $
+@comment $NetBSD: PLIST,v 1.3 2004/12/21 01:48:19 minskim Exp $
 bin/overnetclc
+share/doc/overnetclc/ChangeLog
+share/doc/overnetclc/LISEZMOI
+share/doc/overnetclc/README
+share/overnetclc/contact.dat
diff -r fbaa93317e01 -r a40f01ff843f net/overnet/distinfo
--- a/net/overnet/distinfo      Tue Dec 21 00:21:56 2004 +0000
+++ b/net/overnet/distinfo      Tue Dec 21 01:48:19 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2004/12/19 11:14:51 minskim Exp $
+$NetBSD: distinfo,v 1.5 2004/12/21 01:48:19 minskim Exp $
 
-SHA1 (suse73/i386/overnetclc-1.0.1-1.i386_compat.rpm) = 6ef4542d428fc8fbd797c02f3644e8c0e5f8d58d
-Size (suse73/i386/overnetclc-1.0.1-1.i386_compat.rpm) = 375628 bytes
+SHA1 (overnetclc-1.0.1-1.i386_compat.rpm) = 6ef4542d428fc8fbd797c02f3644e8c0e5f8d58d
+Size (overnetclc-1.0.1-1.i386_compat.rpm) = 375628 bytes



Home | Main Index | Thread Index | Old Index