Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c049d7785b | ||
|
|
11c51cf947 | ||
|
|
3028162f5f |
18
Makefile
18
Makefile
@@ -8,11 +8,13 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
SHELL = /bin/bash
|
||||||
|
|
||||||
export SRCPKG = dhcp
|
export SRCPKG = dhcp
|
||||||
export DEPENDS = glibc
|
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = https://www.isc.org/
|
export URL = https://www.isc.org/
|
||||||
SNAPVER = 4
|
BRIEF = Source package for dhcpd and dhclient
|
||||||
|
SLVER = 7
|
||||||
|
|
||||||
PWD := $(shell pwd)
|
PWD := $(shell pwd)
|
||||||
ROOT := $(PWD)/ROOT
|
ROOT := $(PWD)/ROOT
|
||||||
@@ -21,7 +23,7 @@ TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
|||||||
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||||
PATCHDIR := $(PWD)/SRC/patches
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
||||||
sed 's/^-//')-$(SNAPVER)
|
sed 's/^-//')-$(SLVER)
|
||||||
|
|
||||||
DHCLIENT := $(PWD)/dhclient
|
DHCLIENT := $(PWD)/dhclient
|
||||||
export DHCLIENTROOT := $(DHCLIENT)/ROOT
|
export DHCLIENTROOT := $(DHCLIENT)/ROOT
|
||||||
@@ -29,20 +31,20 @@ DHCPD := $(PWD)/dhcpd
|
|||||||
export DHCPDROOT := $(DHCPD)/ROOT
|
export DHCPDROOT := $(DHCPD)/ROOT
|
||||||
|
|
||||||
$(DHCPDROOT): $(DHCLIENTROOT)
|
$(DHCPDROOT): $(DHCLIENTROOT)
|
||||||
@install -v -d $(DHCPD)/SNAP && \
|
@install -v -d $(DHCPD)/SL && \
|
||||||
install -v -d $(DHCPDROOT)
|
install -v -d $(DHCPDROOT)
|
||||||
@cd $(SRCDIR) && make -C server install DESTDIR=$(DHCPDROOT)
|
@cd $(SRCDIR) && make -C server install DESTDIR=$(DHCPDROOT)
|
||||||
@cd $(DHCPD) && make -f ../Makefile.dhcpd && \
|
@cd $(DHCPD) && make -f ../Makefile.dhcpd && \
|
||||||
mv *.snap ../
|
mv *.slp ../
|
||||||
|
|
||||||
$(DHCLIENTROOT): $(SRCDIR)/client/dhclient
|
$(DHCLIENTROOT): $(SRCDIR)/client/dhclient
|
||||||
@install -v -d $(DHCLIENT)/SNAP && \
|
@install -v -d $(DHCLIENT)/SL && \
|
||||||
install -v -d $(DHCLIENTROOT)
|
install -v -d $(DHCLIENTROOT)
|
||||||
@cd $(SRCDIR) && make -C client install DESTDIR=$(DHCLIENTROOT)
|
@cd $(SRCDIR) && make -C client install DESTDIR=$(DHCLIENTROOT)
|
||||||
@install -v -m 755 $(SRCDIR)/client/scripts/linux \
|
@install -v -m 755 $(SRCDIR)/client/scripts/linux \
|
||||||
$(DHCLIENTROOT)/sbin/dhclient-script
|
$(DHCLIENTROOT)/sbin/dhclient-script
|
||||||
@cd $(DHCLIENT) && make -f ../Makefile.dhclient && \
|
@cd $(DHCLIENT) && make -f ../Makefile.dhclient && \
|
||||||
mv *.snap ../
|
mv *.slp ../
|
||||||
|
|
||||||
$(SRCDIR)/configure: $(ARCHIVE)
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -84,7 +86,7 @@ clean:
|
|||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(DHCLIENT) \
|
$(DHCLIENT) \
|
||||||
$(DHCPD) \
|
$(DHCPD) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
@@ -8,9 +8,11 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
DEPENDS = dash,glibc
|
||||||
|
REPO = core
|
||||||
BRIEF = DHCP Client
|
BRIEF = DHCP Client
|
||||||
DESC = The Internet Systems Consortium DHCP Client, dhclient, \
|
DESC = The Internet Systems Consortium DHCP Client, dhclient, \
|
||||||
provides a means for configuring one or more network interfaces using \
|
provides a means for configuring one or more network interfaces using \
|
||||||
the Dynamic Host Configuration Protocol
|
the Dynamic Host Configuration Protocol
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
@@ -8,9 +8,11 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
DEPENDS = glibc
|
||||||
|
REPO = server
|
||||||
BRIEF = DHCP server
|
BRIEF = DHCP server
|
||||||
DESC = The Internet Systems Consortium DHCP Server, dhcpd, implements the \
|
DESC = The Internet Systems Consortium DHCP Server, dhcpd, implements the \
|
||||||
Dynamic Host Configuration Protocol (DHCP) and the Internet Bootstrap \
|
Dynamic Host Configuration Protocol (DHCP) and the Internet Bootstrap \
|
||||||
Protocol (BOOTP)
|
Protocol (BOOTP)
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
@@ -1,16 +1,9 @@
|
|||||||
Submitted By: Armin K. <krejzi at email dot com>
|
diff -Naur a/client/scripts/linux b/client/scripts/linux
|
||||||
Date: 2012-08-14
|
--- a/client/scripts/linux 2016-09-27 14:16:50.000000000 -0500
|
||||||
Initial Package Version: 4.2.4-P1
|
+++ b/client/scripts/linux 2018-03-29 18:30:41.975046889 -0500
|
||||||
Upstream Status: Rejected by upstream.
|
|
||||||
Origin: Based on Debian's dhclient-script, but modified for BLFS
|
|
||||||
Description: This patch replaces original linux script for dhcp client with
|
|
||||||
better one which is based on Debian's dhclient-script, but modified
|
|
||||||
to be used on LFS/BLFS. It also removes net-tools dependency.
|
|
||||||
|
|
||||||
--- a/client/scripts/linux 2014-07-09 20:26:40.000000000 +0200
|
|
||||||
+++ b/client/scripts/linux 2014-08-12 01:21:02.858998828 +0200
|
|
||||||
@@ -1,316 +1,346 @@
|
@@ -1,316 +1,346 @@
|
||||||
#!/bin/bash
|
-#!/bin/bash
|
||||||
|
+#!/bin/sh
|
||||||
+
|
+
|
||||||
# dhclient-script for Linux. Dan Halbert, March, 1997.
|
# dhclient-script for Linux. Dan Halbert, March, 1997.
|
||||||
# Updated for Linux 2.[12] by Brian J. Murrell, January 1999.
|
# Updated for Linux 2.[12] by Brian J. Murrell, January 1999.
|
||||||
|
|||||||
Reference in New Issue
Block a user