Makefile cleanup, remove unused variables and options
[openwrt/svn-archive/archive.git] / net / siproxd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=siproxd
12 PKG_VERSION:=0.5.13
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/siproxd
17 PKG_MD5SUM:=91a572f80dd5a9af5a0f7f207fd34478
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/siproxd
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libosip2
29 TITLE:=SIP (Session Initiation Protocol) proxy
30 URL:=http://siproxd.sourceforge.net/
31 endef
32
33 define Package/siproxd/conffiles
34 /etc/siproxd.conf
35 endef
36
37 # uses GNU configure
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 SUBDIRS="src scripts contrib" \
43 all install
44 endef
45
46 define Package/siproxd/install
47 install -d -m0755 $(1)/usr/sbin
48 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
49 install -d -m0755 $(1)/etc
50 install -m0644 $(PKG_BUILD_DIR)/doc/siproxd.conf.example $(1)/etc/siproxd.conf
51 install -m0600 $(PKG_BUILD_DIR)/doc/siproxd_passwd.cfg $(1)/etc/
52 install -d -m0755 $(1)/etc/init.d
53 install -m0755 ./files/siproxd.init $(1)/etc/init.d/siproxd
54 endef
55
56 $(eval $(call BuildPackage,siproxd))