diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-01-31 16:51:23 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-01-31 16:51:23 +0000 |
commit | 6175a99e8e707e75b1f947ab94d2ed824285d7a7 (patch) | |
tree | aefa9b5ed016d4ed823d17838d20b2a134d7edf4 /package/openser/Makefile | |
parent | c8a88dcde0ce2f88e91ba2904fcf531e16d73f48 (diff) |
ser -> openser from wr
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3094 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openser/Makefile')
-rw-r--r-- | package/openser/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/package/openser/Makefile b/package/openser/Makefile new file mode 100644 index 0000000000..29d72864f5 --- /dev/null +++ b/package/openser/Makefile @@ -0,0 +1,58 @@ +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=openser +PKG_VERSION:=1.0.0 +PKG_RELEASE:=1 +PKG_MD5SUM:=f60f5a51772c5b06abaa1c81e9539077 +# PKG_VARIANT:=-tls for tls version +PKG_VARIANT:= + +PKG_SOURCE_URL:=http://openser.org/pub/openser/$(PKG_VERSION)/src +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,OPENSER,openser,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +# Select here the modules for the ipk package +OPENSER_MODULES := sl tm rr maxfwd usrloc registrar dbtext textops exec + +OPENSER_MODULE_FILES := $(foreach module,$(OPENSER_MODULES),modules/$(module)/$(module).so) +OPENSER_MODULES := $(patsubst %,modules/%,$(OPENSER_MODULES)) + +$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C $(PKG_BUILD_DIR) \ + prefix=/ \ + extra_defs="-DUSE_PTHREAD_MUTEX " \ + CC="$(TARGET_CC)" \ + ARCH="$(ARCH)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LOCALBASE="$(STAGING_DIR)/usr" \ + all utils/gen_ha1/gen_ha1 + touch $@ + +$(IPKG_OPENSER): + mkdir -p $(IDIR_OPENSER)/usr/sbin + cp -fpR $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_OPENSER)/usr/sbin/ + cp -fpR $(PKG_BUILD_DIR)/utils/gen_ha1/gen_ha1 $(IDIR_OPENSER)/usr/sbin/openser_gen_ha1 + cp -fpR $(PKG_BUILD_DIR)/scripts/sc $(IDIR_OPENSER)/usr/sbin/openserctl + chmod 744 $(IDIR_OPENSER)/usr/sbin/openserctl + cp -fpR $(PKG_BUILD_DIR)/scripts/sc.dbtext $(IDIR_OPENSER)/usr/sbin/dbtextctl + chmod 744 $(IDIR_OPENSER)/usr/sbin/dbtextctl + mkdir -p $(IDIR_OPENSER)/usr/lib/openser/modules + (cd $(PKG_BUILD_DIR);\ + cp -a $(OPENSER_MODULE_FILES) $(IDIR_OPENSER)/usr/lib/openser/modules/; \ + ) + mkdir -p $(IDIR_OPENSER)/etc/openser + cp -fpR $(PKG_BUILD_DIR)/etc/openser.cfg $(IDIR_OPENSER)/etc/openser/ + $(RSTRIP) $(IDIR_OPENSER) + $(IPKG_BUILD) $(IDIR_OPENSER) $(PACKAGE_DIR) |