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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/siproxd
17 PKG_MD5SUM
:=91a572f80dd5a9af5a0f7f207fd34478
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/siproxd
28 TITLE
:=SIP
(Session Initiation Protocol
) proxy
29 URL
:=http
://siproxd.sourceforge.net
/
32 define Package
/siproxd
/conffiles
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
41 SUBDIRS
="src scripts contrib" \
45 define Package
/siproxd
/install
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/siproxd
$(1)/usr
/sbin
/
48 $(INSTALL_DIR
) $(1)/etc
49 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/doc
/siproxd.conf.example
$(1)/etc
/siproxd.conf
50 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/doc
/siproxd_passwd.cfg
$(1)/etc
/
51 $(INSTALL_DIR
) $(1)/etc
/init.d
52 $(INSTALL_BIN
) .
/files
/siproxd.init
$(1)/etc
/init.d
/siproxd
55 $(eval
$(call BuildPackage
,siproxd
))