source: freewrt/package/l2tpns/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.1 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:= l2tpns
10PKG_VERSION:= 2.1.14
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 2a0ee2a3678160c335f1d68c17c4f871
13
14PKG_SOURCE_URL:= @SF/l2tpns
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,L2TPNS,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 touch $@
23
24$(WRKBUILD)/.built:
25 $(MAKE) -C $(WRKBUILD) \
26 CC=$(TARGET_CC) \
27 LD=$(TARGET_CC) \
28 OPTIM="$(TARGET_CFLAGS)" \
29 DESTDIR=$(WRKINST) \
30 STAGING_DIR=$(STAGING_DIR) \
31 all install
32 touch $@
33
34$(IPKG_L2TPNS):
35 install -d -m0755 $(IDIR_L2TPNS)/etc/l2tpns
36 $(CP) $(WRKINST)/etc/l2tpns/* $(IDIR_L2TPNS)/etc/l2tpns/
37 install -d -m0755 $(IDIR_L2TPNS)/usr/lib/l2tpns
38 $(CP) $(WRKINST)/usr/lib/l2tpns/* $(IDIR_L2TPNS)/usr/lib/l2tpns/
39 install -d -m0755 $(IDIR_L2TPNS)/usr/sbin
40 $(CP) $(WRKINST)/usr/sbin/* $(IDIR_L2TPNS)/usr/sbin/
41 $(RSTRIP) $(IDIR_L2TPNS)
42 $(IPKG_BUILD) $(IDIR_L2TPNS) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.