[packages] fwknop: update to 2.0, use new startup commands
[openwrt/svn-archive/archive.git] / net / radsecproxy / Makefile
1 #
2 # Copyright (C) 2008-2012 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.5
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://software.uninett.no/radsecproxy/
16 PKG_MD5SUM:=c65742a1b471c572ca7f6d11000d41f5
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 MAINTAINER:=Hans Zandbelt <hans.zandbelt@gmail.com>
29 endef
30
31 define Package/radsecproxy/description
32 A generic radius proxy for UDP/TLS (RadSec)
33 endef
34
35 CONFIGURE_ARGS+= \
36 --with-ssl="$(STAGING_DIR)/usr"
37
38 #TARGET_CFLAGS += -ansi
39 #TARGET_CFLAGS += -std=c99
40 TARGET_CFLAGS += -Wno-long-long
41
42
43 define Package/radsecproxy/install
44 $(INSTALL_DIR) $(1)/usr/sbin/
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radsecproxy $(1)/usr/sbin/
46 $(INSTALL_DIR) $(1)/etc/
47 $(CP) $(PKG_BUILD_DIR)/radsecproxy.conf-example $(1)/etc/radsecproxy.conf
48 $(INSTALL_DIR) $(1)/etc/init.d/
49 $(INSTALL_BIN) ./files/radsecproxy.init $(1)/etc/init.d/radsecproxy
50 endef
51
52 define Package/radsecproxy/conffiles
53 /etc/radsecproxy.conf
54 endef
55
56 $(eval $(call BuildPackage,radsecproxy))
57