summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-09-30 10:05:17 +0000
committerTim Harder <radhermit@gentoo.org>2011-09-30 10:05:17 +0000
commit2588404032ed7d1671a595627409507a3563d277 (patch)
tree1395ef7d343066bad66e65baa73629b631841ea1 /net-libs
parentBump version dependency on libtextcat. (diff)
downloadhistorical-2588404032ed7d1671a595627409507a3563d277.tar.gz
historical-2588404032ed7d1671a595627409507a3563d277.tar.bz2
historical-2588404032ed7d1671a595627409507a3563d277.zip
Initial import (bug #104244).
Package-Manager: portage-2.2.0_alpha60/cvs/Linux x86_64
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/canlock/ChangeLog10
-rw-r--r--net-libs/canlock/Manifest20
-rw-r--r--net-libs/canlock/canlock-2b.ebuild39
-rw-r--r--net-libs/canlock/files/canlock-2b-make.patch45
-rw-r--r--net-libs/canlock/metadata.xml9
5 files changed, 123 insertions, 0 deletions
diff --git a/net-libs/canlock/ChangeLog b/net-libs/canlock/ChangeLog
new file mode 100644
index 000000000000..863644278ce3
--- /dev/null
+++ b/net-libs/canlock/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-libs/canlock
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/canlock/ChangeLog,v 1.1 2011/09/30 10:05:17 radhermit Exp $
+
+*canlock-2b (30 Sep 2011)
+
+ 30 Sep 2011; Tim Harder <radhermit@gentoo.org> +canlock-2b.ebuild,
+ +files/canlock-2b-make.patch, +metadata.xml:
+ Initial import (bug #104244).
+
diff --git a/net-libs/canlock/Manifest b/net-libs/canlock/Manifest
new file mode 100644
index 000000000000..5d1cff927129
--- /dev/null
+++ b/net-libs/canlock/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+AUX canlock-2b-make.patch 1212 RMD160 04e5fa1318675dd12765bba90039d6ae7c28c38f SHA1 d190b960b702a90014a6256a4b87a811d82d19a1 SHA256 9426b556f77d45cd56eb6c05cbdbd24cdb9a9b099c31940fdac670301b27f7ab
+DIST canlock_2b-6.diff.gz 7946 RMD160 a894099ade6d0e91bfb48b2e383070d5864d4de2 SHA1 46a6829f975ddd9b567c6f6793ff894bf4632e76 SHA256 fd08c6d5fc8f2934248a86affec404d5c0b3d360dc9b810389ec7a2c193ff502
+DIST canlock_2b.orig.tar.gz 14099 RMD160 ce0528b159c4395eda29b1f8f0d76223c95aa8dd SHA1 42c71c47d0e0eb06fa1259cfd5039805feaf4042 SHA256 90234e47727dfd9782b79e05b6efa879d2792ad8feb46788b583032a71af0da7
+EBUILD canlock-2b.ebuild 1097 RMD160 449f5f00aaa8c6d1107d9669d4f9bef92dc5f66f SHA1 70f9997f83833c06aa7558364aba631b997cda99 SHA256 ae0c16d278e27c34bb08ecc47c5e142dd1377feb4fea5b85b299c9db414d8b1e
+MISC ChangeLog 384 RMD160 5e51882e972ce6fbb9e7cf18456322d0cda0bca2 SHA1 7862d090899573cdea2a31709d1c28e276b7cdef SHA256 5e1a6668bbc5060aec4f51b237664da6f7261d9a5d2ef3533b4d44af867a8ac1
+MISC metadata.xml 255 RMD160 9f6ad82c0a8f9181988cda72fc8760a147461d4b SHA1 25e6c58a05c98ba4be21205ce4af4620b1ba98ca SHA256 90a28f7a04b3cfd2510dce1e8d8f24377251f3b4cc7b944f8d757ec3f76b0841
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iQEcBAEBCgAGBQJOhZRnAAoJEEqz6FtPBkyjDxAIAI4JlKBshm/Dz36uKBN73+so
+ZjEnB+u7/XH25IeUV7ePxARce4gUQ234QSQBm8WmxxxFNLYOCYu/11RwNkylSDo1
+ojpazPRlQoFEibgyGVXfbBbiuuMvXjNT53YHBdLBDUwC5T01LvCE30pbPxxrci3S
+fqueUoZIn7BJfPm+WqttxgJ3FXkn9/+A7ebM+UEcT9baT1t8/iunC7lQRZkvvke7
+TArirBYVHdkFgwfsHfG20sCClgOhSfZhAcxFQDGa+DVLbQZGPrVsVqcUlUaXvPSF
+SAImFqgNsOFwRHWjU+CiileR1uaYirQqbQuiBjpV5zeayinNWDFpuBkfR5x+puY=
+=Rwn5
+-----END PGP SIGNATURE-----
diff --git a/net-libs/canlock/canlock-2b.ebuild b/net-libs/canlock/canlock-2b.ebuild
new file mode 100644
index 000000000000..b721e8f8b251
--- /dev/null
+++ b/net-libs/canlock/canlock-2b.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/canlock/canlock-2b.ebuild,v 1.1 2011/09/30 10:05:17 radhermit Exp $
+
+EAPI=4
+
+inherit eutils multilib toolchain-funcs
+
+MY_P="${P/-/_}"
+DESCRIPTION="A library for creating and verifying Usenet cancel locks"
+HOMEPAGE="http://packages.qa.debian.org/c/canlock.html"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${MY_P}.orig.tar.gz
+ mirror://debian/pool/main/c/${PN}/${MY_P}-6.diff.gz"
+
+LICENSE="BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+S=${WORKDIR}/${P/-/}
+
+src_prepare() {
+ epatch "${DISTDIR}"/${MY_P}-6.diff.gz \
+ "${FILESDIR}"/${P}-make.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
+}
+
+src_install() {
+ use static-libs && dolib.a src/libcanlock.a
+ dolib.so src/libcanlock.so.2.0.0
+ dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so.2
+ dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so
+ insinto /usr/include
+ doins include/canlock.h
+ dodoc CHANGES README doc/HOWTO
+}
diff --git a/net-libs/canlock/files/canlock-2b-make.patch b/net-libs/canlock/files/canlock-2b-make.patch
new file mode 100644
index 000000000000..5ea34530cebd
--- /dev/null
+++ b/net-libs/canlock/files/canlock-2b-make.patch
@@ -0,0 +1,45 @@
+--- canlock2b.orig/Makefile
++++ canlock2b/Makefile
+@@ -15,16 +15,17 @@
+ $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS)
+
+ $(STATIC_LIB):
+- cd src && make
++ cd src && $(MAKE) libcanlock.so.2.0.0
++ cd src && $(MAKE) libcanlock.a
+ ln -s src/libcanlock.a libcanlock.a
+
+ clean:
+ rm -f src/*.o t/*.o t/*.out *.gmon gmon.*
+- cd src && make clean
++ cd src && $(MAKE) clean
+ rm -f *.a canlocktest hmactest sha1test *.exe *.h lib-stamp
+
+ install: all
+- cd src && make install DESTDIR=$(DESTDIR)
++ cd src && $(MAKE) install DESTDIR=$(DESTDIR)
+ install --mode=644 include/canlock.h $(DESTDIR)/usr/include
+
+ test: all
+--- canlock2b.orig/src/Makefile
++++ canlock2b/src/Makefile
+@@ -13,8 +13,8 @@
+
+ libcanlock.a:
+ $(CC) $(CFLAGS) -c $(SOURCES)
+- ar cru libcanlock.a $(OBJS)
+- ranlib libcanlock.a
++ $(AR) cru libcanlock.a $(OBJS)
++ $(RANLIB) libcanlock.a
+ rm $(OBJS)
+
+ libcanlock.so.2.0.0:
+@@ -26,7 +26,7 @@
+ cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so.2
+ cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so
+ $(INSTALL) libcanlock.a $(DESTDIR)/usr/lib/libcanlock.a
+- ranlib $(DESTDIR)/usr/lib/libcanlock.a
++ $(RANLIB) $(DESTDIR)/usr/lib/libcanlock.a
+
+ clean:
+ rm -f $(OBJS) $(LIBS)
diff --git a/net-libs/canlock/metadata.xml b/net-libs/canlock/metadata.xml
new file mode 100644
index 000000000000..1580c9f41f85
--- /dev/null
+++ b/net-libs/canlock/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-news</herd>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>