source: freewrt/package/autossh/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.0 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= autossh
10PKG_VERSION:= 1.3
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 0e7ec62eeca5d1b197f3ef2d0f0d417f
13
14PKG_SOURCE_URL:= http://www.harding.motd.ca/autossh
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tgz
16
17include $(TOPDIR)/mk/package.mk
18
19SSH=/usr/bin/ssh
20
21$(eval $(call PKG_template,AUTOSSH,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 cp $(WRKBUILD)/Makefile.linux $(WRKBUILD)/Makefile
25 touch $@
26
27$(WRKBUILD)/.built:
28 $(MAKE) -C $(WRKBUILD) \
29 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"$(SSH)\\\"\" -D\"VER=\\\"$(PKG_VERSION)\\\"\"" \
30 BINDIR=/usr/bin MANDIR=/usr/man
31 touch $@
32
33$(IPKG_AUTOSSH):
34 $(INSTALL_DIR) $(IDIR_AUTOSSH)/usr/bin
35 $(INSTALL_BIN) $(WRKBUILD)/$(PKG_NAME) $(IDIR_AUTOSSH)/usr/bin/
36 $(RSTRIP) $(IDIR_AUTOSSH)
37 $(IPKG_BUILD) $(IDIR_AUTOSSH) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.