From d44731801d49cbeccfd857af2027b6fa2da4a73c Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sat, 18 Mar 2006 16:19:31 +0000 Subject: [PATCH] fix depends in radiusclient-ng control file, add a conffiles for radiusclient-ng, install dev libs in staging_dir, standardize. SVN-Revision: 3400 --- openwrt/package/radiusclient-ng/Makefile | 71 +++++++++++-------- .../ipkg/radiusclient-ng.conffiles | 2 + .../ipkg/radiusclient-ng.control | 2 +- 3 files changed, 44 insertions(+), 31 deletions(-) create mode 100644 openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.conffiles diff --git a/openwrt/package/radiusclient-ng/Makefile b/openwrt/package/radiusclient-ng/Makefile index 88070c6be5..d68bb1c737 100644 --- a/openwrt/package/radiusclient-ng/Makefile +++ b/openwrt/package/radiusclient-ng/Makefile @@ -23,29 +23,29 @@ $(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ - CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ - LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ + CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ ac_cv_func_getdomainname=yes \ ./configure \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --program-prefix="" \ - --program-suffix="" \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --datadir=/usr/share \ - --includedir=/usr/include \ - --infodir=/usr/share/info \ - --libdir=/usr/lib \ - --libexecdir=/usr/lib \ - --localstatedir=/var \ - --mandir=/usr/share/man \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc \ - $(DISABLE_NLS) \ - $(DISABLE_LARGEFILE) \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --program-prefix="" \ + --program-suffix="" \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --datadir=/usr/share \ + --includedir=/usr/include \ + --infodir=/usr/share/info \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + $(DISABLE_NLS) \ + $(DISABLE_LARGEFILE) \ ); touch $@ @@ -56,25 +56,36 @@ $(PKG_BUILD_DIR)/.built: touch $@ $(IPKG_RADIUSCLIENT_NG): - mkdir -p $(IDIR_RADIUSCLIENT_NG)/usr - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin $(IDIR_RADIUSCLIENT_NG)/usr/ - cp -fpR $(PKG_INSTALL_DIR)/etc $(IDIR_RADIUSCLIENT_NG)/ + install -d -m0755 $(IDIR_RADIUSCLIENT_NG)/etc + cp -fpR $(PKG_INSTALL_DIR)/etc/radiusclient-ng $(IDIR_RADIUSCLIENT_NG)/etc/ + install -d -m0755 $(IDIR_RADIUSCLIENT_NG)/usr/sbin + cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_RADIUSCLIENT_NG)/usr/sbin/ $(RSTRIP) $(IDIR_RADIUSCLIENT_NG)/ $(IPKG_BUILD) $(IDIR_RADIUSCLIENT_NG) $(PACKAGE_DIR) $(IPKG_LIBRADIUSCLIENT_NG): - mkdir -p $(IDIR_LIBRADIUSCLIENT_NG)/usr - cp -fpR $(PKG_INSTALL_DIR)/usr/lib $(IDIR_LIBRADIUSCLIENT_NG)/usr/ + install -d -m0755 $(IDIR_LIBRADIUSCLIENT_NG)/usr/lib + cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.so.* $(IDIR_LIBRADIUSCLIENT_NG)/usr/lib/ $(RSTRIP) $(IDIR_LIBRADIUSCLIENT_NG)/ - $(IPKG_BUILD) $(IDIR_LIBRADIUSCLIENT_NG) $(PACKAGE_DIR) + $(IPKG_BUILD) $(IDIR_LIBRADIUSCLIENT_NG) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libradiusclient-ng.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/ $(STAGING_DIR)/usr/ + cp -fpR $(PKG_INSTALL_DIR)/usr/include/radiusclient-ng.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng{a,la,so}* $(STAGING_DIR)/usr/lib/ + cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ +install-dev: $(STAGING_DIR)/usr/lib/libradiusclient-ng.so + +uninstall-dev: + rm -rf \ + $(STAGING_DIR)/usr/include/radiusclient-ng.h \ + $(STAGING_DIR)/usr/lib/libradiusclient-ng.{a,so*} \ + +compile: install-dev +clean: uninstall-dev + mostlyclean: - $(MAKE) -C $(PKG_BUILD_DIR) clean + -$(MAKE) -C $(PKG_BUILD_DIR) clean rm -f $(PKG_BUILD_DIR)/.built diff --git a/openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.conffiles b/openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.conffiles new file mode 100644 index 0000000000..5ba8a458be --- /dev/null +++ b/openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.conffiles @@ -0,0 +1,2 @@ +/etc/radiusclient-ng/radiusclient.conf +/etc/radiusclient-ng/servers diff --git a/openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.control b/openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.control index d11a837bdc..5668b2e2cb 100644 --- a/openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.control +++ b/openwrt/package/radiusclient-ng/ipkg/radiusclient-ng.control @@ -2,4 +2,4 @@ Package: radiusclient-ng Section: net Description: RADIUS client Priority: optional -Depends: libopenssl +Depends: libradiusclient-ng -- 2.30.2