[packages] Various Makefile cleanups.
[packages.git] / net / frickin / Makefile
1 #
2 # Copyright (C) 2006 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:=frickin
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/frickin
16 PKG_MD5SUM:= 5b2e98da2310c71c703d4617b88a173f
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/frickin
21   SECTION:=net
22   CATEGORY:=Network
23   TITLE:=PPTP (Point-to-Point Tunneling Protocol) proxy
24   URL:=http://sourceforge.net/projects/frickin/
25   SUBMENU:=VPN
26 endef
27
28 define Package/frickin/description
29         Frickin PPTP Proxy allows a Point-to-Point Tunneling Protocol (PPTP) 
30         client to connect to a PPTP server through Network Address 
31         Translation (NAT).
32 endef
33
34 define Package/frickin/conffiles
35 /etc/default/frickin
36 endef
37
38 define Build/Configure
39         $(MAKE) -C $(PKG_BUILD_DIR) \
40                 $(TARGET_CONFIGURE_OPTS) \
41                 CFLAGS="$(TARGET_CFLAGS)" \
42                 all
43 endef
44
45 define Package/frickin/install
46         $(INSTALL_DIR) $(1)/etc/default
47         $(INSTALL_DATA) ./files/frickin.default $(1)/etc/default/frickin
48         $(INSTALL_DIR) $(1)/etc/init.d
49         $(INSTALL_BIN) ./files/frickin.init $(1)/etc/init.d/frickin
50         $(INSTALL_DIR) $(1)/usr/sbin
51         $(INSTALL_BIN) $(PKG_BUILD_DIR)/frickin $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,frickin))