Update gpsd to 2.37 (#3622)
[openwrt/svn-archive/archive.git] / net / radsecproxy / Makefile
1 #
2 # Copyright (C) 2007 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.0p1
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:=d1bdfd731342eda1242ba94703165fbe
18
19 PKG_BUILD_DEPENDS:= libopenssl libpthread zlib
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/radsecproxy
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libopenssl +libpthread +zlib
27 TITLE:=radsecproxy
28 URL:=http://software.uninett.no/radsecproxy
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 #LIBS="-lz" \
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46 define Package/radsecproxy/install
47 $(INSTALL_DIR) $(1)/usr/sbin/
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radsecproxy $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/
50 $(CP) $(PKG_INSTALL_DIR)/etc/radsecproxy.conf-example $(1)/etc/radsecproxy.conf
51 $(INSTALL_DIR) $(1)/etc/init.d/
52 $(INSTALL_BIN) ./files/radsecproxy.init $(1)/etc/init.d/radsecproxy
53 endef
54
55 $(eval $(call BuildPackage,radsecproxy))
56