source: packages/net/siproxd/Makefile @ 12175

Last change on this file since 12175 was 12175, checked in by florian, 8 years ago

Makefile cleanups, round 6 and last

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=siproxd
12PKG_VERSION:=0.7.0
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/siproxd
17PKG_MD5SUM:=6c978eef0d00160e50073e2e2fd8c23d
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/siproxd
22  SECTION:=net
23  CATEGORY:=Network
24  DEPENDS:=+libosip2
25  TITLE:=SIP (Session Initiation Protocol) proxy
26  URL:=http://siproxd.sourceforge.net/
27endef
28
29#define Package/siproxd/conffiles
30#/etc/siproxd.conf
31#endef
32
33# uses GNU configure
34
35define Build/Compile
36        $(MAKE) -C $(PKG_BUILD_DIR) \
37                DESTDIR="$(PKG_INSTALL_DIR)" \
38                SUBDIRS="src scripts contrib" \
39                all install
40endef
41
42define Package/siproxd/install
43        $(INSTALL_DIR) $(1)/usr/sbin
44        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
45#       $(INSTALL_DIR) $(1)/etc
46#       $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/siproxd.conf.example $(1)/etc/siproxd.conf
47#       $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/siproxd_passwd.cfg $(1)/etc/
48        $(INSTALL_DIR) $(1)/etc/config
49        $(INSTALL_DATA) ./files/siproxd.config $(1)/etc/config/siproxd
50        $(INSTALL_DIR) $(1)/etc/init.d
51        $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
52endef
53
54$(eval $(call BuildPackage,siproxd))
Note: See TracBrowser for help on using the repository browser.