diff options
author | schmonz <schmonz> | 2002-09-01 05:02:07 +0000 |
---|---|---|
committer | schmonz <schmonz> | 2002-09-01 05:02:07 +0000 |
commit | 1a23b3800abef64b871674bdd7ed2751ac7ab369 (patch) | |
tree | 4624c6b248341bb68be19e9f5b6688c9eb0724c6 /devel | |
parent | 2ba05daea620ddfc3044ea4e81db511b2db694a4 (diff) | |
download | pkgsrc-1a23b3800abef64b871674bdd7ed2751ac7ab369.tar.gz |
Initial import of cvs2p4 2.0.
This small set of tools provides a means for importing a CVS module
into Perforce.
It was originally developed for use at Network Appliance, to convert
our product source code revision history from CVS into Perforce.
cvs2p4 tries make the resultant Perforce depot look as if the work in
CVS had been going on in Perforce.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/cvs2p4/DESCR | 8 | ||||
-rw-r--r-- | devel/cvs2p4/Makefile | 57 | ||||
-rw-r--r-- | devel/cvs2p4/PLIST | 12 | ||||
-rw-r--r-- | devel/cvs2p4/distinfo | 5 | ||||
-rw-r--r-- | devel/cvs2p4/patches/patch-aa | 31 |
5 files changed, 113 insertions, 0 deletions
diff --git a/devel/cvs2p4/DESCR b/devel/cvs2p4/DESCR new file mode 100644 index 00000000000..f7f78aecd27 --- /dev/null +++ b/devel/cvs2p4/DESCR @@ -0,0 +1,8 @@ +This small set of tools provides a means for importing a CVS module +into Perforce. + +It was originally developed for use at Network Appliance, to convert +our product source code revision history from CVS into Perforce. + +cvs2p4 tries make the resultant Perforce depot look as if the work in +CVS had been going on in Perforce. diff --git a/devel/cvs2p4/Makefile b/devel/cvs2p4/Makefile new file mode 100644 index 00000000000..c60df09d8e1 --- /dev/null +++ b/devel/cvs2p4/Makefile @@ -0,0 +1,57 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/09/01 05:02:07 schmonz Exp $ +# + +DISTNAME= cvs2p4-2.0 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.perforce.com/perforce/utils/cvs2p4/ +EXTRACT_SUFX= .tar + +MAINTAINER= schmonz@netbsd.org +HOMEPAGE= # none +COMMENT= Converts CVS repository to Perforce depot + +DEPENDS+= p4-[0-9]*:../../devel/p4 +DEPENDS+= p4d-[0-9]*:../../devel/p4d +.if !exists(/usr/bin/co) && !exists(${LOCALBASE}/bin/co) +DEPENDS+= rcs-[0-9]*:../../devel/rcs +.endif + +USE_PERL5= # defined +NO_BUILD= # defined + +DOCDIR= share/doc/${PKGBASE} +EGDIR= share/examples/${PKGBASE} +LIBDIR= lib/perl5 +PLIST_SUBST+= DOCDIR=${DOCDIR} +PLIST_SUBST+= EGDIR=${EGDIR} + +FILES_SUBST+= P4ROOT=${P4ROOT:Q} +FILES_SUBST+= P4PORT=${P4PORT:Q} + +CVS2P4_INLIB= $$Mydir/lib/util\.pl +CVS2P4_OUTLIB= ${LIBDIR}/${PKGBASE}-util.pl + +do-configure: + for f in ${WRKSRC}/bin/*; do \ + ( ${ECHO} \#!${PERL5}; ${CAT} $${f} ) | ${SED} -e '2,5d' \ + -e 's|${CVS2P4_INLIB}|${PREFIX}/${CVS2P4_OUTLIB}|' \ + > $${f}.new; \ + ${MV} -f $${f}.new $${f}; \ + done + @${SED} ${FILES_SUBST_SED} ${WRKSRC}/test/config \ + > ${WRKSRC}/test/config.new + @${MV} -f ${WRKSRC}/test/config.new ${WRKSRC}/test/config + +do-install: + ${INSTALL_DATA} ${WRKSRC}/lib/util.pl ${PREFIX}/${CVS2P4_OUTLIB} + ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin + + ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/${DOCDIR} + + ${INSTALL_DATA_DIR} ${PREFIX}/${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/test/config ${PREFIX}/${EGDIR} + +.include "../../mk/bsd.pkg.install.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/cvs2p4/PLIST b/devel/cvs2p4/PLIST new file mode 100644 index 00000000000..8c0c2d00c56 --- /dev/null +++ b/devel/cvs2p4/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/01 05:02:07 schmonz Exp $ +bin/dochanges +bin/dolabels +bin/genchanges +bin/genmetadata +bin/revmap +lib/perl5/${PKGBASE}-util.pl +${DOCDIR}/NEWS +${DOCDIR}/README +${EGDIR}/config +@dirrm ${EGDIR} +@dirrm ${DOCDIR} diff --git a/devel/cvs2p4/distinfo b/devel/cvs2p4/distinfo new file mode 100644 index 00000000000..7877ed7de55 --- /dev/null +++ b/devel/cvs2p4/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/09/01 05:02:07 schmonz Exp $ + +SHA1 (cvs2p4-2.0.tar) = e867fa3be7f6820cca8fe9beaf56f108b60eb166 +Size (cvs2p4-2.0.tar) = 153600 bytes +SHA1 (patch-aa) = ce45400202e5b107cefa41de0178cc208350e1f5 diff --git a/devel/cvs2p4/patches/patch-aa b/devel/cvs2p4/patches/patch-aa new file mode 100644 index 00000000000..e87ad498865 --- /dev/null +++ b/devel/cvs2p4/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/09/01 05:02:07 schmonz Exp $ + +--- test/config.orig Mon May 6 18:54:48 2002 ++++ test/config +@@ -6,22 +6,22 @@ + + # p4 command location (If other than "/usr/local/bin/p4") + # +-$P4 = "/usr/local/bin/p4"; ++$P4 = "@PREFIX@/bin/p4"; + + # p4 command location (If other than "/usr/local/bin/p4d") + # +-$P4D = "/usr/local/bin/p4d"; ++$P4D = "@PREFIX@/sbin/p4d"; + + # Perforce server we're using. + # +-$P4PORT = "localhost:1680"; ++$P4PORT = "@P4PORT@"; + + # Perforce server's P4ROOT + # + # (Typically, you'll use an absolute path, but it can also be relative + # to where you execute the conversion commands from.) + # +-$P4ROOT = "p4root"; ++$P4ROOT = "@P4ROOT@"; + + # Perforce user name to use during the conversion. + # This code defaults it to the user name of the user running |