diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-libs/canlock | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-libs/canlock')
-rw-r--r-- | net-libs/canlock/Manifest | 2 | ||||
-rw-r--r-- | net-libs/canlock/canlock-2b.ebuild | 44 | ||||
-rw-r--r-- | net-libs/canlock/files/canlock-2b-make.patch | 110 | ||||
-rw-r--r-- | net-libs/canlock/metadata.xml | 5 |
4 files changed, 161 insertions, 0 deletions
diff --git a/net-libs/canlock/Manifest b/net-libs/canlock/Manifest new file mode 100644 index 000000000000..1f94012b01fe --- /dev/null +++ b/net-libs/canlock/Manifest @@ -0,0 +1,2 @@ +DIST canlock_2b-6.diff.gz 7946 SHA256 fd08c6d5fc8f2934248a86affec404d5c0b3d360dc9b810389ec7a2c193ff502 SHA512 fa89d638d87e5cb18bd6c270200cd5d962c5a263855e5cbbd8e944dea633a61d6f0c271da04d56096ef23e0a9f252e3bdead496e9aa9afe31d3f8e7ef679020f WHIRLPOOL 0277808d414c4b06f23b697373ec6207ffc22404550a493b2be6ce43b2b13a1042e461b16f6efbd540a7a5bccc20286224d6afe2b4c572b979198f8a3e5381d5 +DIST canlock_2b.orig.tar.gz 14099 SHA256 90234e47727dfd9782b79e05b6efa879d2792ad8feb46788b583032a71af0da7 SHA512 3ceeac6a17fc3bb3330626d22145371ed5f53ad2a33c6a60b639dab0dbc8ff85623839a9d1e1d4cb78580a9060b0ec9fd3489d1374feecf587b2ec5c7963f58e WHIRLPOOL 7f48d62dd29e89f4745cdb09c5f6d4600dc402b8cc327bbfa2b2d8b62ab940426a1e44fac93a64fdf471aecedbd14610c3fa83e0f36fc936edf140305f281b28 diff --git a/net-libs/canlock/canlock-2b.ebuild b/net-libs/canlock/canlock-2b.ebuild new file mode 100644 index 000000000000..cad4f1f61dae --- /dev/null +++ b/net-libs/canlock/canlock-2b.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ppc x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +S=${WORKDIR}/${P/-/} + +src_prepare() { + epatch "${WORKDIR}"/${MY_P}-6.diff \ + "${FILESDIR}"/${P}-make.patch +} + +src_compile() { + local targets="shared" + if use static-libs || use test ; then + targets+=" static" + fi + + emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" ${targets} +} + +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..492b88bee143 --- /dev/null +++ b/net-libs/canlock/files/canlock-2b-make.patch @@ -0,0 +1,110 @@ +--- canlock2b/Makefile ++++ canlock2b/Makefile +@@ -1,33 +1,35 @@ +-CFLAGS = -Iinclude +-LDFLAGS = -L. -lcanlock ++CFLAGS += -Iinclude ++LIBS = -L. -lcanlock + CC = gcc +-STATIC_LIB = libcanlock.a + +-all: hmactest canlocktest $(STATIC_LIB) ++all: shared static + +-sha1test: t/sha1test.c $(STATIC_LIB) +- $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS) ++sha1test: t/sha1test.c shared ++ $(CC) $(CFLAGS) t/$@.c -o $@ $(LIBS) $(LDFLAGS) + +-hmactest: t/hmactest.c $(STATIC_LIB) +- $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS) ++hmactest: t/hmactest.c shared ++ $(CC) $(CFLAGS) t/$@.c -o $@ $(LIBS) $(LDFLAGS) + +-canlocktest: t/canlocktest.c $(STATIC_LIB) +- $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS) ++canlocktest: t/canlocktest.c shared ++ $(CC) $(CFLAGS) t/$@.c -o $@ $(LIBS) $(LDFLAGS) + +-$(STATIC_LIB): +- cd src && make +- ln -s src/libcanlock.a libcanlock.a ++static: ++ cd src && $(MAKE) libcanlock.a ++ ln -sf src/libcanlock.a libcanlock.a ++ ++shared: ++ cd src && $(MAKE) libcanlock.so.2.0.0 + + 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 ++ ++test: hmactest canlocktest + @echo "hmactest: " + @./hmactest > t/hmactest.out || echo hmm + @diff t/hmactest.shouldbe t/hmactest.out && echo " Pass." || (echo " **FAIL**" ; exit 1) +--- canlock2b/src/Makefile ++++ canlock2b/src/Makefile +@@ -1,9 +1,11 @@ +-LIBOBJS = base64.lo canlock.lo hmac_sha1.lo sha1.lo + CC = gcc ++AR = ar ++RANLIB = ranlib + LIBTOOL = libtool +-CFLAGS = -I../include ++CFLAGS += -I../include + SOURCES = base64.c canlock.c hmac_sha1.c sha1.c +-OBJS = base64.o canlock.o hmac_sha1.o sha1.o ++OBJS := $(SOURCES:.c=.o) ++LIBOBJS := $(SOURCES:.c=.lo) + SHARELINKFLAGS = -Wl,-soname -Wl,libcanlock.so.2 + SHAREDFLAGS = -fPIC -DPIC + LIBS = libcanlock.a libcanlock.so.2.0.0 +@@ -11,22 +13,25 @@ + + all: $(LIBS) + +-libcanlock.a: +- $(CC) $(CFLAGS) -c $(SOURCES) +- ar cru libcanlock.a $(OBJS) +- ranlib libcanlock.a +- rm $(OBJS) +- +-libcanlock.so.2.0.0: +- $(CC) $(CFLAGS) $(SHAREDFLAGS) -c $(SOURCES) +- $(CC) -shared $(OBJS) $(SHARELINKFLAGS) -o libcanlock.so.2.0.0 ++%.o: %.c ++ $(CC) $(CFLAGS) -c -o $@ $< ++ ++%.lo: %.c ++ $(CC) $(CFLAGS) $(SHAREDFLAGS) -c -o $@ $< ++ ++libcanlock.a: $(OBJS) ++ $(AR) cru libcanlock.a $(OBJS) ++ $(RANLIB) libcanlock.a ++ ++libcanlock.so.2.0.0: $(LIBOBJS) ++ $(CC) -shared $(LIBOBJS) $(LDFLAGS) $(SHARELINKFLAGS) -o libcanlock.so.2.0.0 + + install: all + $(INSTALL) libcanlock.so.2.0.0 $(DESTDIR)/usr/lib + 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) ++ rm -f $(OBJS) $(LIBOBJS) $(LIBS) diff --git a/net-libs/canlock/metadata.xml b/net-libs/canlock/metadata.xml new file mode 100644 index 000000000000..4d0ebe73a55f --- /dev/null +++ b/net-libs/canlock/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-news</herd> +</pkgmetadata> |