3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=f60f5a51772c5b06abaa1c81e9539077
9 # PKG_VARIANT:=-tls for tls version
12 PKG_SOURCE_URL
:=http
://openser.org
/pub
/openser
/$(PKG_VERSION
)/src
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)$(PKG_VARIANT
)_src.
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,OPENSER
,openser
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 # Select here the modules for the ipk package
24 OPENSER_MODULES
:= sl tm rr maxfwd usrloc registrar dbtext textops exec
26 OPENSER_MODULE_FILES
:= $(foreach module
,$(OPENSER_MODULES
),modules
/$(module
)/$(module
).so
)
27 OPENSER_MODULES
:= $(patsubst %,modules
/%,$(OPENSER_MODULES
))
29 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
32 $(PKG_BUILD_DIR
)/.built
:
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 extra_defs
="-DUSE_PTHREAD_MUTEX " \
38 CFLAGS
="$(TARGET_CFLAGS)" \
39 LOCALBASE
="$(STAGING_DIR)/usr" \
40 all utils
/gen_ha1
/gen_ha1
44 mkdir
-p
$(IDIR_OPENSER
)/usr
/sbin
45 $(CP
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(IDIR_OPENSER
)/usr
/sbin
/
46 $(CP
) $(PKG_BUILD_DIR
)/utils
/gen_ha1
/gen_ha1
$(IDIR_OPENSER
)/usr
/sbin
/openser_gen_ha1
47 $(CP
) $(PKG_BUILD_DIR
)/scripts
/sc
$(IDIR_OPENSER
)/usr
/sbin
/openserctl
48 chmod
744 $(IDIR_OPENSER
)/usr
/sbin
/openserctl
49 $(CP
) $(PKG_BUILD_DIR
)/scripts
/sc.dbtext
$(IDIR_OPENSER
)/usr
/sbin
/dbtextctl
50 chmod
744 $(IDIR_OPENSER
)/usr
/sbin
/dbtextctl
51 mkdir
-p
$(IDIR_OPENSER
)/usr
/lib
/openser
/modules
52 (cd
$(PKG_BUILD_DIR
);\
53 $(CP
) $(OPENSER_MODULE_FILES
) $(IDIR_OPENSER
)/usr
/lib
/openser
/modules
/; \
55 mkdir
-p
$(IDIR_OPENSER
)/etc
/openser
56 $(CP
) $(PKG_BUILD_DIR
)/etc
/openser.cfg
$(IDIR_OPENSER
)/etc
/openser
/
57 $(RSTRIP
) $(IDIR_OPENSER
)
58 $(IPKG_BUILD
) $(IDIR_OPENSER
) $(PACKAGE_DIR
)