map xt_ to ipt_ for iptables modules
[openwrt.git] / openwrt / package / autossh / Makefile
1 # $Id$
2 #
3 # Adjust SSH below to suit.
4 #
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=autossh
8 PKG_VERSION:=1.3
9 PKG_RELEASE:=1
10 PKG_MD5SUM:=0e7ec62eeca5d1b197f3ef2d0f0d417f
11 PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 VER=1.3
19 SSH=/usr/bin/ssh
20
21 include $(TOPDIR)/package/rules.mk
22
23 $(eval $(call PKG_template,AUTOSSH,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
24
25 $(PKG_BUILD_DIR)/.configured:
26 cp $(PKG_BUILD_DIR)/Makefile.linux $(PKG_BUILD_DIR)/Makefile
27 touch $@
28
29 $(PKG_BUILD_DIR)/.built:
30 $(MAKE) -C $(PKG_BUILD_DIR) \
31 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"$(SSH)\\\"\" -D\"VER=\\\"$(PKG_VERSION)\\\"\"" \
32 BINDIR=/usr/bin MANDIR=/usr/man
33 touch $@
34
35 $(IPKG_AUTOSSH):
36 mkdir -p $(IDIR_AUTOSSH)/usr/bin
37 cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_AUTOSSH)/usr/bin/
38 $(RSTRIP) $(IDIR_AUTOSSH)
39 $(IPKG_BUILD) $(IDIR_AUTOSSH) $(PACKAGE_DIR)
This page took 0.03967 seconds and 5 git commands to generate.