diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-libs/canlock/files | |
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/files')
-rw-r--r-- | net-libs/canlock/files/canlock-2b-make.patch | 110 |
1 files changed, 110 insertions, 0 deletions
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) |