massive Makefile cleanup, add missing 'svn:keywords' property

git-svn-id: svn://svn.openwrt.org/openwrt/packages@5348 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico
2006-10-30 13:51:50 +00:00
parent d6c03f5259
commit 5cb332fb35
139 changed files with 1341 additions and 1322 deletions

View File

@ -12,13 +12,12 @@ PKG_NAME:=vpnc
PKG_VERSION:=0.3.3
PKG_RELEASE:=1
PKG_MD5SUM:=e7518cff21326fe7eb9795b60c25ae6a
PKG_SOURCE_URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
PKG_MD5SUM:=e7518cff21326fe7eb9795b60c25ae6a
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -28,7 +27,6 @@ define Package/vpnc
CATEGORY:=Network
DEPENDS:=+libgpg-error +libgcrypt +kmod-tun
TITLE:=VPN client for Cisco 3000
DESCRIPTION:=Client for cisco3000 VPN Concentrator
URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
endef
@ -38,18 +36,24 @@ define Package/vpnc/conffiles
endef
define Build/Compile
$(call Build/Compile/Default,CC="$(TARGET_CC)" \
$(call Build/Compile/Default, \
OFLAGS="$(TARGET_CFLAGS)" \
OS="Linux" \
STAGING_DIR="$(STAGING_DIR)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
PREFIX=/usr \
all install)
all install \
)
endef
define Package/vpnc/install
install -d -m0755 $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/vpnc \
$(PKG_INSTALL_DIR)/usr/sbin/vpnc-disconnect \
$(1)/usr/sbin/
install -d -m0700 $(1)/etc/vpnc
install -m0600 $(PKG_INSTALL_DIR)/etc/vpnc/vpnc.conf $(1)/etc/vpnc/
install -m0755 $(PKG_INSTALL_DIR)/etc/vpnc/vpnc-script $(1)/etc/vpnc/
endef
$(eval $(call BuildPackage,vpnc))