add wrt-radauth package (thanks to Florian Fainelli)
[openwrt.git] / package / wrt-radauth / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=wrt-radauth
4 PKG_VERSION:=1.0
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=f941e3139175dc6b87f6c89ba8848a07
7
8 PKG_SOURCE_URL:=http://www.zerfleddert.de/wrt54g/
9 PKG_SOURCE:=$(PKG_NAME).tar.gz
10 PKG_CAT:=zcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
13
14 include $(TOPDIR)/package/rules.mk
15
16 BR2_PACKAGE_WRT_RADAUTH:=m
17
18 $(eval $(call PKG_template,WRT_RADAUTH,wrt-radauth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 CC="$(TARGET_CC)" \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
28 clean all
29 touch $@
30
31 $(IPKG_WRT_RADAUTH):
32 install -d -m0755 $(IDIR_WRT_RADAUTH)/usr/sbin
33 install -m0755 $(PKG_BUILD_DIR)/radius-client $(IDIR_WRT_RADAUTH)/usr/sbin/
34 install -m0755 $(PKG_BUILD_DIR)/wrt-radauth $(IDIR_WRT_RADAUTH)/usr/sbin/
35 $(RSTRIP) $(IDIR_WRT_RADAUTH)
36 $(IPKG_BUILD) $(IDIR_WRT_RADAUTH) $(PACKAGE_DIR)
This page took 0.045925 seconds and 5 git commands to generate.