9a303a4c4b1107af755f7cc22155dac4fe2f2fae
[openwrt/svn-archive/archive.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
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:=a352ae4efeeed0528cee8efa21f460b6
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/radsecproxy
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libopenssl +libpthread
24 TITLE:=radsecproxy
25 URL:=http://software.uninett.no/radsecproxy
26 endef
27
28 define Package/radsecproxy/description
29 A generic radius proxy for UDP/TLS (RadSec)
30 endef
31
32 CONFIGURE_ARGS+= \
33 --with-ssl="$(STAGING_DIR)/usr"
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 all install
39 endef
40
41 define Package/radsecproxy/install
42 $(INSTALL_DIR) $(1)/usr/sbin/
43 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radsecproxy $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/etc/
45 $(CP) $(PKG_INSTALL_DIR)/etc/radsecproxy.conf-example $(1)/etc/radsecproxy.conf
46 $(INSTALL_DIR) $(1)/etc/init.d/
47 $(INSTALL_BIN) ./files/radsecproxy.init $(1)/etc/init.d/radsecproxy
48 endef
49
50 $(eval $(call BuildPackage,radsecproxy))
51