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
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=dhcp
|
|---|
| 6 | PKG_VERSION:=3.0.3
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=f91416a0b8ed3fd0601688cf0b7df58f
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | include $(TOPDIR)/package/rules.mk
|
|---|
| 15 |
|
|---|
| 16 | $(eval $(call PKG_template,DHCP_RELAY,dhcp-relay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 17 | $(eval $(call PKG_template,DHCP_SERVER,dhcp-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | (cd $(WRKBUILD) ; \
|
|---|
| 21 | ./configure \
|
|---|
| 22 | --copts "$(TARGET_CFLAGS)" \
|
|---|
| 23 | linux-2.2 \
|
|---|
| 24 | );
|
|---|
| 25 | touch $@
|
|---|
| 26 |
|
|---|
| 27 | $(WRKBUILD)/.built:
|
|---|
| 28 | rm -rf $(WRKINST)
|
|---|
| 29 | mkdir -p $(WRKINST)
|
|---|
| 30 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 31 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 32 | DESTDIR="$(WRKINST)" \
|
|---|
| 33 | all install
|
|---|
| 34 | touch $@
|
|---|
| 35 |
|
|---|
| 36 | $(IPKG_DHCP_RELAY):
|
|---|
| 37 | install -d -m0755 $(IDIR_DHCP_RELAY)/usr/sbin
|
|---|
| 38 | $(CP) $(WRKINST)/usr/sbin/dhcrelay $(IDIR_DHCP_RELAY)/usr/sbin/
|
|---|
| 39 | $(RSTRIP) $(IDIR_DHCP_RELAY)
|
|---|
| 40 | $(IPKG_BUILD) $(IDIR_DHCP_RELAY) $(PACKAGE_DIR)
|
|---|
| 41 |
|
|---|
| 42 | $(IPKG_DHCP_SERVER):
|
|---|
| 43 | install -d -m0755 $(IDIR_DHCP_SERVER)/usr/sbin
|
|---|
| 44 | $(CP) $(WRKINST)/usr/sbin/dhcpd $(IDIR_DHCP_SERVER)/usr/sbin/
|
|---|
| 45 | $(RSTRIP) $(IDIR_DHCP_SERVER)
|
|---|
| 46 | $(IPKG_BUILD) $(IDIR_DHCP_SERVER) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.