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