source: freewrt/package/dhcp6/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

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

  • Property mode set to 100755
File size: 1.0 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=dhcp6
6PKG_VERSION:=1.0
7PKG_RELEASE:=1
8PKG_MD5SUM:=86193dfa62137db3ea459543db4f1102
9PKG_SOURCE_URL:=@SF/dhcpv6-linux
10PKG_SOURCE:=dhcpv6-linux-$(PKG_VERSION).zip
11
12
13include $(TOPDIR)/package/rules.mk
14
15$(eval $(call PKG_template,DHCP6,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
16
17$(WRKBUILD)/.configured:
18 touch $@
19
20$(WRKBUILD)/.built:
21 $(MAKE) CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) -C $(WRKBUILD)/server
22 $(MAKE) CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) -C $(WRKBUILD)/client
23 install -d $(WRKINST)/usr/sbin $(WRKINST)/etc/dhcp{d6,6}
24 install -m0755 $(WRKBUILD)/client/cli $(WRKINST)/usr/sbin/dhcp6client
25 install -m0755 $(WRKBUILD)/server/serv $(WRKINST)/usr/sbin/dhcpd6
26 install -m0755 $(WRKBUILD)/server/*.conf $(WRKINST)/etc/dhcpd6/
27 install -m0755 $(WRKBUILD)/client/*.conf $(WRKINST)/etc/dhcp6/
28 touch $@
29
30$(IPKG_DHCP6):
31 mkdir -p $(IDIR_DHCP6)
32 $(CP) $(WRKINST)/* $(IDIR_DHCP6)/
33 $(RSTRIP) $(IDIR_DHCP6)
34 $(IPKG_BUILD) $(IDIR_DHCP6) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.