diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-09-25 10:38:36 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-09-25 10:38:36 +0200 |
commit | eebce988808821c7c656a4217593c2c5f9f8c3d1 (patch) | |
tree | 2e586d6487bc95ad11dcec7ca17f5712a11c1e80 | |
parent | b924f165d447539418b13626e7218041a2745bf9 (diff) |
update nfsutils, add new prereq keyutils
-rw-r--r-- | package/keyutils/Makefile | 29 | ||||
-rw-r--r-- | package/keyutils/patches/patch-Makefile | 67 | ||||
-rw-r--r-- | package/nfs-utils/Makefile | 9 |
3 files changed, 101 insertions, 4 deletions
diff --git a/package/keyutils/Makefile b/package/keyutils/Makefile new file mode 100644 index 000000000..d824afcf0 --- /dev/null +++ b/package/keyutils/Makefile @@ -0,0 +1,29 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= keyutils +PKG_VERSION:= 1.5.3 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 4c89b350eab1c361af8cb5343961056a +PKG_DESCR:= set of utilities for managing the key retention facility in the kernel +PKG_SECTION:= libs +PKG_SITES:= http://people.redhat.com/dhowells/keyutils/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,KEYUTILS,keyutils,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE:= manual +INSTALL_TARGET:= libinstall +#INSTALL_STYLE:= manual + +keyutils-install: + $(INSTALL_DIR) $(IDIR_KEYUTILS)/usr/lib + $(CP) $(WRKBUILD)/libkeyutils.so* \ + $(IDIR_KEYUTILS)/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/keyutils/patches/patch-Makefile b/package/keyutils/patches/patch-Makefile new file mode 100644 index 000000000..c541f727c --- /dev/null +++ b/package/keyutils/patches/patch-Makefile @@ -0,0 +1,67 @@ +--- keyutils-1.5.3.orig/Makefile 2011-08-11 15:24:09.000000000 +0200 ++++ keyutils-1.5.3/Makefile 2011-09-19 21:52:31.000000000 +0200 +@@ -1,5 +1,5 @@ + CPPFLAGS := -I. +-CFLAGS := $(CPPFLAGS) -g -Wall -Werror ++CFLAGS ?= $(CPPFLAGS) -g -Wall -Werror + INSTALL := install + DESTDIR := + SPECFILE := keyutils.spec +@@ -49,7 +49,7 @@ LIBNAME := libkeyutils.so.$(APIVERSION) + # Guess at the appropriate lib directory and word size + # + ############################################################################### +-LIBDIR := $(shell ldd /usr/bin/make | grep '\(/libc\)' | sed -e 's!.*\(/.*\)/libc[.].*!\1!') ++LIBDIR := /usr/lib + USRLIBDIR := $(patsubst /lib/%,/usr/lib/%,$(LIBDIR)) + BUILDFOR := $(shell file /usr/bin/make | sed -e 's!.*ELF \(32\|64\)-bit.*!\1!')-bit + +@@ -84,7 +84,7 @@ endif + # Normal build rule + # + ############################################################################### +-all: $(DEVELLIB) keyctl request-key key.dns_resolver ++all: $(DEVELLIB) + + ############################################################################### + # +@@ -125,13 +125,13 @@ keyutils.os: keyutils.c keyutils.h Makef + %.o: %.c keyutils.h Makefile + $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< + +-keyctl: keyctl.o -lkeyutils ++keyctl: keyctl.o + $(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils + +-request-key: request-key.o -lkeyutils ++request-key: request-key.o + $(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils + +-key.dns_resolver: key.dns_resolver.o -lkeyutils ++key.dns_resolver: key.dns_resolver.o + $(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils -lresolv + + ############################################################################### +@@ -139,6 +139,13 @@ key.dns_resolver: key.dns_resolver.o -lk + # Install everything + # + ############################################################################### ++libinstall: ++ $(INSTALL) -d $(DESTDIR)$(LIBDIR) ++ $(INSTALL) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) ++ $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME) ++ $(INSTALL) -d $(DESTDIR)$(INCLUDEDIR) ++ $(INSTALL) -m 0644 keyutils.h $(DESTDIR)$(INCLUDEDIR)/keyutils.h ++ + install: all + ifeq ($(NO_ARLIB),0) + $(INSTALL) -D -m 0644 $(ARLIB) $(DESTDIR)$(USRLIBDIR)/$(ARLIB) +@@ -205,7 +212,7 @@ distclean: clean + TARBALL := keyutils-$(VERSION).tar.bz2 + SRCBALL := rpmbuild/SOURCES/$(TARBALL) + +-dist := $(word 2,$(shell grep "%dist" /etc/rpm/macros.dist)) ++dist := OpenADK + release := $(word 2,$(shell grep ^Release: $(SPECFILE))) + release := $(subst %{?dist},$(dist),$(release)) + rpmver := $(VERSION)-$(release) diff --git a/package/nfs-utils/Makefile b/package/nfs-utils/Makefile index e277874c6..4aa720004 100644 --- a/package/nfs-utils/Makefile +++ b/package/nfs-utils/Makefile @@ -4,12 +4,13 @@ include ${TOPDIR}/rules.mk PKG_NAME:= nfs-utils -PKG_VERSION:= 1.2.3 -PKG_RELEASE:= 6 -PKG_MD5SUM:= 1131dc5f27c4f3905a6e7ee0d594fd4d +PKG_VERSION:= 1.2.4 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 938dc0574f3eb9891a8ed4746f806277 PKG_DESCR:= Utilities for NFS kernel server implementation PKG_SECTION:= net/fs -PKG_DEPENDS:= kmod-nfsd +PKG_DEPENDS:= kmod-nfsd keyutils +PKG_BUILDDEP:= keyutils PKG_URL:= http://sourceforge.net/projects/nfs PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/} |