2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=91a572f80dd5a9af5a0f7f207fd34478
16 PKG_SOURCE_URL
:=@SF
/siproxd
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/siproxd
29 TITLE
:=SIP
(Session Initiation Protocol
) proxy
30 DESCRIPTION
:=A SIP
(Session Initiation Protocol
) proxy
31 URL
:=http
://siproxd.sourceforge.net
/
34 define Package
/siproxd
/conffiles
38 define Build
/Configure
39 $(call Build
/Configure
/Default
,--enable-static
--enable-shared
)
43 rm -rf
$(PKG_INSTALL_DIR
)
44 mkdir
-p
$(PKG_INSTALL_DIR
)
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
47 SUBDIRS
="src scripts contrib" \
51 define Package
/siproxd
/install
52 install -d
-m0755
$(1)/etc
53 $(CP
) $(PKG_BUILD_DIR
)/doc
/siproxd.conf.example
$(1)/etc
/siproxd.conf
54 $(CP
) $(PKG_BUILD_DIR
)/doc
/siproxd_passwd.cfg
$(1)/etc
/
55 install -d
-m0755
$(1)/etc
/init.d
56 install -m0755 files
/siproxd.init
$(1)/etc
/init.d
/siproxd
57 install -d
-m0755
$(1)/usr
/sbin
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/siproxd
$(1)/usr
/sbin
/
61 $(eval
$(call BuildPackage
,siproxd
))