source: packages/net/dhcp/Makefile @ 7882

Last change on this file since 7882 was 7882, checked in by florian, 9 years ago

Upgrade to 3.0.6 and fix download

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=dhcp
12PKG_VERSION:=3.0.6
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/
17PKG_MD5SUM:=724bad21ad8b638abadd5fcc07df1a0f
18PKG_CAT:=zcat
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/dhcp/Default
26  SECTION:=net
27  CATEGORY:=Network
28  TITLE:=ISC's DHCP
29  URL:=http://www.isc.org/
30endef
31
32define Package/dhcp-relay
33  $(call Package/dhcp/Default)
34  TITLE+= relay
35endef
36
37define Package/dhcp-server
38  $(call Package/dhcp/Default)
39  TITLE+= server
40endef
41
42
43define Build/Configure
44        # it's not GNU autoconf stuff
45        (cd $(PKG_BUILD_DIR) ; \
46                UNAME_S=Linux \
47                UNAME_M=$(ARCH) \
48                UNAME_R=2.4.34 \
49                ./configure \
50                        --copts "$(TARGET_CFLAGS)" \
51                        linux-2.2 \
52        );
53endef
54
55define Build/Compile
56        UNAME_S=Linux \
57        UNAME_M=$(ARCH) \
58        UNAME_R=2.4.34 \
59        $(MAKE) -C $(PKG_BUILD_DIR) \
60                $(TARGET_CONFIGURE_OPTS) \
61                DESTDIR="$(PKG_INSTALL_DIR)" \
62                all install
63endef
64
65       
66define Package/dhcp-relay/install
67        $(INSTALL_DIR) $(1)/usr/sbin
68        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(1)/usr/sbin/
69endef
70
71define Package/dhcp-server/install
72        $(INSTALL_DIR) $(1)/usr/sbin
73        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(1)/usr/sbin/
74endef
75
76$(eval $(call BuildPackage,dhcp-relay))
77$(eval $(call BuildPackage,dhcp-server))
Note: See TracBrowser for help on using the repository browser.