3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=3e2e12c8dfbd7dad9199304093de0838
10 PKG_SOURCE_URL
:=ftp
://ftp.berlios.de
/pub
/ser
/$(PKG_VERSION
)/src
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)_src.
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,SER
,ser
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 SER_MODULES
:= sl tm rr maxfwd usrloc registrar dbtext textops nathelper
21 SER_MODULE_FILES
:= $(foreach module
,$(SER_MODULES
),modules
/$(module
)/$(module
).so
)
22 SER_MODULES
:= $(patsubst %,modules
/%,$(SER_MODULES
))
24 $(PKG_BUILD_DIR
)/.built
:
25 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
26 extra_defs
="-DUSE_PTHREAD_MUTEX " \
29 CFLAGS
="$(TARGET_CFLAGS)" \
34 mkdir
-p
$(IDIR_SER
)/usr
/sbin
35 cp
-a
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(IDIR_SER
)/usr
/sbin
/
36 -$(STRIP
) $(IDIR_SER
)/usr
/sbin
/*
37 cp
-a
$(PKG_BUILD_DIR
)/scripts
/sc
$(IDIR_SER
)/usr
/sbin
/serctl
38 mkdir
-p
$(IDIR_SER
)/usr
/lib
/ser
/modules
39 (cd
$(PKG_BUILD_DIR
);\
40 cp
-a
$(SER_MODULE_FILES
) $(IDIR_SER
)/usr
/lib
/ser
/modules
/; \
42 $(STRIP
) $(IDIR_SER
)/usr
/lib
/ser
/modules
/*
43 mkdir
-p
$(IDIR_SER
)/etc
/ser
44 cp
-a
$(PKG_BUILD_DIR
)/etc
/ser.cfg
$(IDIR_SER
)/etc
/ser
/
45 $(IPKG_BUILD
) $(IDIR_SER
) $(PACKAGE_DIR
)