update radsexproxy to version 1.2
[openwrt/svn-archive/archive.git] / net / radsecproxy / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=radsecproxy
12 PKG_VERSION:=1.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://software.uninett.no/radsecproxy/
17 PKG_MD5SUM:=e209054731b3316301d0920c15a0a5b2
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/radsecproxy
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libopenssl +libpthread +zlib
25 TITLE:=radsecproxy
26 URL:=http://software.uninett.no/radsecproxy
27 endef
28
29 define Package/radsecproxy/description
30 A generic radius proxy for UDP/TLS (RadSec)
31 endef
32
33 CONFIGURE_ARGS+= \
34 --with-ssl="$(STAGING_DIR)/usr"
35
36 #LIBS="-lz" \
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Package/radsecproxy/install
45 $(INSTALL_DIR) $(1)/usr/sbin/
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radsecproxy $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc/
48 $(CP) $(PKG_INSTALL_DIR)/etc/radsecproxy.conf-example $(1)/etc/radsecproxy.conf
49 $(INSTALL_DIR) $(1)/etc/init.d/
50 $(INSTALL_BIN) ./files/radsecproxy.init $(1)/etc/init.d/radsecproxy
51 endef
52
53 $(eval $(call BuildPackage,radsecproxy))
54