summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce A. Locke <blocke@gentoo.org>2002-09-08 21:52:34 +0000
committerBruce A. Locke <blocke@gentoo.org>2002-09-08 21:52:34 +0000
commit1fd76ed5f1291f121722875cb82095e531fed42d (patch)
tree83d6e2337dfcfd943824764531fa96aeccedcc78 /dev-util
parentFixes #6991. (diff)
downloadgentoo-2-1fd76ed5f1291f121722875cb82095e531fed42d.tar.gz
gentoo-2-1fd76ed5f1291f121722875cb82095e531fed42d.tar.bz2
gentoo-2-1fd76ed5f1291f121722875cb82095e531fed42d.zip
ebuild contributed by matt@zigg.com (Matt Behrens) with modifications
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/ctmkit/ChangeLog11
-rw-r--r--dev-util/ctmkit/ctmkit-19960528.ebuild28
-rw-r--r--dev-util/ctmkit/files/Makefile51
-rw-r--r--dev-util/ctmkit/files/digest-ctmkit-199605281
4 files changed, 91 insertions, 0 deletions
diff --git a/dev-util/ctmkit/ChangeLog b/dev-util/ctmkit/ChangeLog
new file mode 100644
index 000000000000..aa94ee8a39b3
--- /dev/null
+++ b/dev-util/ctmkit/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-util/ctmkit
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ctmkit/ChangeLog,v 1.1 2002/09/08 21:52:34 blocke Exp $
+
+*ctmkit-19960528 (08 Sep 2002)
+
+ 08 Sep 2002; Bruce A. Locke <blocke@shivan.org> ctmkit-19960528.ebuild, files/Makefile:
+ Initial import of ebuild contributed by matt@zigg.com (Matt Behrens)
+ with modifications.
+
+
diff --git a/dev-util/ctmkit/ctmkit-19960528.ebuild b/dev-util/ctmkit/ctmkit-19960528.ebuild
new file mode 100644
index 000000000000..3fc05f0f0a37
--- /dev/null
+++ b/dev-util/ctmkit/ctmkit-19960528.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ctmkit/ctmkit-19960528.ebuild,v 1.1 2002/09/08 21:52:34 blocke Exp $
+
+MY_P="ctmkit"
+S=${WORKDIR}/ctmkit
+DESCRIPTION="old NetBSD port of FreeBSD's CTM, a set of utilities to synchronize directories through email"
+HOMEPAGE="http://www.nemeton.com.au/"
+SRC_URI="http://www.nemeton.com.au/src/${MY_P}.tar.gz"
+KEYWORDS="x86"
+SLOT="0"
+LICENSE="public-domain RSA-MD2 RSA-MD3 RSA-MD5 as-is"
+
+DEPEND="virtual/glibc"
+
+src_compile() {
+
+ cp ${FILESDIR}/Makefile .
+ make || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc ctm/README
+ doman md5/md5.1 libmd/mdX.3 ctm/ctm/ctm.1 ctm/ctm/ctm.5 ctm/ctm_rmail/ctm_rmail.1
+}
+
diff --git a/dev-util/ctmkit/files/Makefile b/dev-util/ctmkit/files/Makefile
new file mode 100644
index 000000000000..34af71658163
--- /dev/null
+++ b/dev-util/ctmkit/files/Makefile
@@ -0,0 +1,51 @@
+# Portable Makefile for ctmkit
+# Public domain by Matt Behrens <matt@zigg.com>
+#
+# Drop this in your ctm directory and 'make && sudo make install'.
+
+DESTDIR=
+PREFIX=/usr
+BINDIR=${PREFIX}/bin
+
+CFLAGS+=-Ilibmd
+LIBMD_OBJS=libmd/md2c.o libmd/md4c.o libmd/md5c.o libmd/md2hl.o libmd/md4hl.o libmd/md5hl.o
+CTM_OBJS=ctm/ctm/ctm.o ctm/ctm/ctm_input.o ctm/ctm/ctm_pass1.o ctm/ctm/ctm_pass2.o ctm/ctm/ctm_pass3.o ctm/ctm/ctm_syntax.o ctm/ctm/ctm_ed.o
+CTM_RMAIL_OBJS=ctm/ctm_rmail/ctm_rmail.o ctm/ctm_rmail/error.o
+MD5_OBJS=md5/md5.o
+
+all: bin/ctm bin/ctm_rmail bin/md5
+
+clean:
+ rm -f ${LIBMD_OBJS} ${CTM_OBJS} ${CTM_RMAIL_OBJS} libmd/md2hl.c libmd/md4hl.c libmd/md5hl.c libmd/libmd.a
+ rm -rf bin
+
+install: all
+ install -d ${DESTDIR}${BINDIR}
+ install -c -m 755 bin/ctm ${DESTDIR}${BINDIR}/ctm
+ install -c -m 755 bin/ctm_rmail ${DESTDIR}${BINDIR}/ctm_rmail
+ install -c -m 755 bin/md5 ${DESTDIR}${BINDIR}/md5
+
+libmd/md2hl.c: libmd/mdXhl.c
+ sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' $< > $@
+
+libmd/md4hl.c: libmd/mdXhl.c
+ sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' $< > $@
+
+libmd/md5hl.c: libmd/mdXhl.c
+ sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' $< > $@
+
+libmd/libmd.a: ${LIBMD_OBJS}
+ ar r $@ ${LIBMD_OBJS}
+
+bin/ctm: ${CTM_OBJS} libmd/libmd.a
+ mkdir -p bin
+ cc -o $@ ${CTM_OBJS} -Llibmd -lmd
+
+bin/ctm_rmail: ${CTM_RMAIL_OBJS}
+ mkdir -p bin
+ cc -o $@ ${CTM_RMAIL_OBJS}
+
+bin/md5: ${MD5_OBJS}
+ mkdir -p bin
+ cc -o $@ ${MD5_OBJS} -Llibmd -lmd
+
diff --git a/dev-util/ctmkit/files/digest-ctmkit-19960528 b/dev-util/ctmkit/files/digest-ctmkit-19960528
new file mode 100644
index 000000000000..2cde70052bdd
--- /dev/null
+++ b/dev-util/ctmkit/files/digest-ctmkit-19960528
@@ -0,0 +1 @@
+MD5 0f16f8caa4cb46d77e6443f7d8968c7b ctmkit.tar.gz 37115