diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-11-09 22:48:48 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-11-09 22:48:48 +0000 |
commit | 6407c4d7b16c2bffeb63964d5ad5bd6b38e054dc (patch) | |
tree | 6d32a1073513aed30190993229f58b28cd46d238 /sys-libs/cracklib/files | |
parent | Add support to build static lib, needed for new version of pam. (diff) | |
download | gentoo-2-6407c4d7b16c2bffeb63964d5ad5bd6b38e054dc.tar.gz gentoo-2-6407c4d7b16c2bffeb63964d5ad5bd6b38e054dc.tar.bz2 gentoo-2-6407c4d7b16c2bffeb63964d5ad5bd6b38e054dc.zip |
Add support to build static lib, needed for new version of pam.
Diffstat (limited to 'sys-libs/cracklib/files')
-rw-r--r-- | sys-libs/cracklib/files/cracklib-2.7-static-lib.patch | 41 | ||||
-rw-r--r-- | sys-libs/cracklib/files/digest-cracklib-2.7-r8 | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/sys-libs/cracklib/files/cracklib-2.7-static-lib.patch b/sys-libs/cracklib/files/cracklib-2.7-static-lib.patch new file mode 100644 index 000000000000..6ee6a7677167 --- /dev/null +++ b/sys-libs/cracklib/files/cracklib-2.7-static-lib.patch @@ -0,0 +1,41 @@ +--- cracklib-2.7/cracklib/Makefile 2003-11-09 23:01:29.405532640 +0200 ++++ cracklib-2.7.static/cracklib/Makefile 2003-11-09 23:17:57.983245984 +0200 +@@ -6,21 +6,28 @@ + # and upwards. + ### + +-LIB = libcrack.so ++LIB = libcrack + OBJ = fascist.o packlib.o rules.o stringlib.o + CFLAGS += -g -I../cracklib -DIN_CRACKLIB -fPIC + LD = ld ++AR = ar + +-$(LIB): $(OBJ) Makefile +- $(LD) -shared -soname $(LIB).$(MAJOR) -o $(LIB).$(VERSION) $(OBJ) -lc +- rm -f $(LIB).$(MAJOR) $(LIB) +- ln -s $(LIB).$(VERSION) $(LIB).$(MAJOR) +- ln -s $(LIB).$(MAJOR) $(LIB) ++all: $(LIB).so $(LIB).a ++ ++$(LIB).so: $(OBJ) Makefile ++ $(LD) -shared -soname $(LIB).so.$(MAJOR) -o $(LIB).so.$(VERSION) $(OBJ) -lc ++ rm -f $(LIB).so.$(MAJOR) $(LIB).so ++ ln -s $(LIB).so.$(VERSION) $(LIB).so.$(MAJOR) ++ ln -s $(LIB).so.$(MAJOR) $(LIB).so ++ ++$(LIB).a: $(OBJ) Makefile ++ $(AR) cru $(LIB).a $(OBJ) + + clean: +- -rm -f $(OBJ) $(LIB) $(LIB).$(VERSION) *~ ++ -rm -f $(OBJ) $(LIB).so $(LIB).a $(LIB).so.$(VERSION) *~ + +-install: $(LIB) crack.h +- install -m 755 $(LIB).$(VERSION) $(DESTDIR)/usr/lib +- ln -sf $(LIB).$(VERSION) $(DESTDIR)/usr/lib/$(LIB) ++install: $(LIB).so $(LIB).a crack.h ++ install -m 755 $(LIB).so.$(VERSION) $(DESTDIR)/usr/lib ++ ln -sf $(LIB).so.$(VERSION) $(DESTDIR)/usr/lib/$(LIB).so ++ install -m 755 $(LIB).a $(DESTDIR)/usr/lib + install -m 644 crack.h $(DESTDIR)/usr/include diff --git a/sys-libs/cracklib/files/digest-cracklib-2.7-r8 b/sys-libs/cracklib/files/digest-cracklib-2.7-r8 new file mode 100644 index 000000000000..12a9da188d95 --- /dev/null +++ b/sys-libs/cracklib/files/digest-cracklib-2.7-r8 @@ -0,0 +1 @@ +MD5 0c84ad7413d9dd3e5c2eaa5f97d53c4a cracklib,2.7.tar.gz 21059 |