more tristate -> prompt fixes
[openwrt.git] / package / dhcp6 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=dhcp6
4 PKG_VERSION:=1.0
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=86193dfa62137db3ea459543db4f1102
7 PKG_SOURCE_URL:=@SF/dhcpv6-linux
8 PKG_SOURCE:=dhcpv6-linux-$(PKG_VERSION).zip
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10 PKG_CAT:=unzip
11
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,DHCP6,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured:
19 touch $@
20
21 $(PKG_BUILD_DIR)/.built:
22 $(MAKE) CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) -C $(PKG_BUILD_DIR)/server
23 $(MAKE) CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) -C $(PKG_BUILD_DIR)/client
24 install -d $(PKG_INSTALL_DIR)/usr/sbin $(PKG_INSTALL_DIR)/etc/dhcp{d6,6}
25 install -m0755 $(PKG_BUILD_DIR)/client/cli $(PKG_INSTALL_DIR)/usr/sbin/dhcp6client
26 install -m0755 $(PKG_BUILD_DIR)/server/serv $(PKG_INSTALL_DIR)/usr/sbin/dhcpd6
27 install -m0755 $(PKG_BUILD_DIR)/server/*.conf $(PKG_INSTALL_DIR)/etc/dhcpd6/
28 install -m0755 $(PKG_BUILD_DIR)/client/*.conf $(PKG_INSTALL_DIR)/etc/dhcp6/
29 touch $@
30
31 $(IPKG_DHCP6):
32 mkdir -p $(IDIR_DHCP6)
33 cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_DHCP6)/
34 $(RSTRIP) $(IDIR_DHCP6)
35 $(IPKG_BUILD) $(IDIR_DHCP6) $(PACKAGE_DIR)
This page took 0.052163 seconds and 5 git commands to generate.