[packages] Use default templates instead of custom reimplementations where applicable
[packages.git] / net / radsecproxy / Makefile
1 #
2 # Copyright (C) 2008-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=radsecproxy
11 PKG_VERSION:=1.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://software.uninett.no/radsecproxy/
16 PKG_MD5SUM:=565b389268d906c3b465f63750938667
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/radsecproxy
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=+libopenssl +libpthread
26   TITLE:=radsecproxy
27   URL:=http://software.uninett.no/radsecproxy
28 endef
29
30 define Package/radsecproxy/description
31   A generic radius proxy for UDP/TLS (RadSec)
32 endef
33
34 CONFIGURE_ARGS+= \
35         --with-ssl="$(STAGING_DIR)/usr"
36
37 define Package/radsecproxy/install
38         $(INSTALL_DIR) $(1)/usr/sbin/
39         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radsecproxy $(1)/usr/sbin/
40         $(INSTALL_DIR) $(1)/etc/
41         $(CP) $(PKG_INSTALL_DIR)/etc/radsecproxy.conf-example $(1)/etc/radsecproxy.conf
42         $(INSTALL_DIR) $(1)/etc/init.d/
43         $(INSTALL_BIN) ./files/radsecproxy.init $(1)/etc/init.d/radsecproxy
44 endef
45
46 $(eval $(call BuildPackage,radsecproxy))
47