summaryrefslogtreecommitdiffstats
path: root/package/dhcp
Commit message (Collapse)AuthorAgeFilesLines
* dhcp: update dhclient-scriptGustavo Zacarias2014-11-281-1/+283
| | | | | | | | | | | | | | | | | | | | | | The previous no-op dhclient-script is useless and in fact can lead users to believe things will work. dhclient-script is supposed to, among many other things, bring the interface up for dhclient to pump an address, set the interface address, set resolv.conf appropiately and set the default gateway. It's a complex script since it has to deal with a lot of details so let's just use the best fit which is the OpenWRT one since it uses the "legacy" tools (ifconfig, route, ...) which can be easily provided by busybox and/or net-tools. There are newer and more feature-complete versions around but they require full iproute2 ip and wouldn't fit as well with the busybox-only approach. License: likely GPLv2+ Source: http://git.openwrt.org/?p=packages.git;a=blob;f=net/isc-dhcp/files/dhclient-script;h=4afebc0ad20ebac51c5baae5ed01c6713e3a0fd0;hb=HEAD Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysv init scripts: fix == bashismAndré Erdmann2014-11-112-4/+4
| | | | | | | | | | | | | | | | | test a == b is not available in e.g. dash. Command(s) used for editing: q=\[\"\'\] operand="${q}?[$]?[a-zA-Z0-9_\?]+${q}?" ## doesn't detect ${VAR} test_expr="(\[\s+${operand}\s+)==(\s+${operand}\s+\])" find . -type f -name '[SK][0-9][0-9]*' | \ xargs sed -r -e "s@${test_expr}@\1=\2@g" -i Signed-off-by: André Erdmann <dywi@mailerd.de> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* dhcp: fix bad --enable/disable-debug logicGustavo Zacarias2014-11-112-0/+25
| | | | | | | | | | | | It interprets disable as enable and wreaks havoc since it changes the behaviour of the build, for instance not using configured leases files paths. Thanks to Nathaniel Roach for pointing me to this problem. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Nathaniel Roach <nroach44@gmail.com> Tested-by: Nathaniel Roach <nroach44@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* dhcp: add systemd service fileEric Le Bihan2014-10-292-0/+28
| | | | | | | | | | | | | | | Add a systemd service file to start dhcpd. The network interfaces to listen on can be set via the variable INTERFACES in /etc/default/dhcpd.conf. Example: INTERFACES="eth0 eth1" Also install a tmpfiles.d file to create /var/lib/dhcp/dhcpd.leases (needed at dhcpd start-up). Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: indentation cleanupJerzy Grzegorek2014-10-261-2/+2
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/.mk files: remove --localstatedir=/var from autotools packagesJörg Krause2014-10-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Remove --localstatedir=/var from all autotools packages where it is no longer needed. Also remove --localstatedir=/var/lib/dhcp from package dhcp. localstatedir is used by dhcp to set the default directory for the leases files. This can also be done by setting --with-*-lease-file=/var/lib/dhcp/*, which is done in dhcp.mk. A custom --localstatedir is left in: * proftpd.mk * mysql.mk This is safe to do: One of the good thing with autoconf is that if you pass: --localstatedir=/var ... --localstatedir=/var/something Then /var/something will be used. So, we can set --localstatedir=/var by default in the infrastructure, and still have certain packages doing weird things override it. [Thanks to Thomas Petazzoni] Signed-off-by: Jörg Krause <jkrause@posteo.de> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSThomas De Schampheleire2014-10-041-3/+3
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* dhcp: bump to version 4.1-ESV-R10Gustavo Zacarias2014-09-051-1/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* dhcp: Fix IPv6 files pathsBenoît Thébaudeau2014-08-041-1/+6
| | | | | | | | Use IPv6 file locations consistent with those set for IPv4 instead of keeping the defaults, which use different locations. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* dhcp: Fix config files pathsBenoît Thébaudeau2014-08-042-2/+5
| | | | | | | | | The built dhcp binaries and the installed startup scripts used configuration files under /etc/, but the configuration files were installed under /etc/dhcp/. Fix everything to have configuration files under /etc/dhcp/. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* dhcp: bump to version 4.1-ESV-R9Gustavo Zacarias2014-06-111-5/+9
| | | | | | | | | | Also install the SysV initscripts from the proper hook. Since the scripts check for the proper files to be present there's no need to exclude them according to options since they won't try to start anything. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Config.in files: use if/endif instead of 'depends on' for main symbolThomas De Schampheleire2013-12-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | In the Config.in file of package foo, it often happens that there are other symbols besides BR2_PACKAGE_FOO. Typically, these symbols only make sense when foo itself is enabled. There are two ways to express this: with depends on BR2_PACKAGE_FOO in each extra symbol, or with if BR2_PACKAGE_FOO ... endif around the entire set of extra symbols. The if/endif approach avoids the repetition of 'depends on' statements on multiple symbols, so this is clearly preferred. But even when there is only one extra symbol, if/endif is a more logical choice: - it is future-proof for when extra symbols are added - it allows to have just one strategy instead of two (less confusion) This patch modifies the Config.in files accordingly. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* dhcp: adjust initscripts and misc detailsGustavo Zacarias2013-11-183-30/+20
| | | | | | | | | | | | | | | Revamp initscripts see bug #3601 * Trim whitespace * Check for installed binary (dhcp-relay) * Check for installed config (dhcp-server) * Check for proper variable setup from the script (both) * Add "FAIL" message when startup fails (blind OK isn't accurate) * Add start/stop messages to dhcp-relay Switch bool to "dhcp (ISC)" to keep in line with package sorting. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* dhcp: install to stagingThomas De Schampheleire2013-07-271-0/+1
| | | | | | | | Install dhcp to staging so other applications can use its include files and libraries. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* dhcp: add config option for delayed-ack feature of dhcp serverThomas De Schampheleire2013-07-192-0/+9
| | | | | | | | This patch creates a config option for the ISC DHCP server to allow passing --enable-delayed-ack to its configure script. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: bump to version 4.1-ESV-R8Gustavo Zacarias2013-02-051-1/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: add license informationGustavo Zacarias2013-01-281-2/+4
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: security bump to version 4.1-ESV-R7Gustavo Zacarias2012-09-201-1/+1
| | | | | | | Bump dhcp to version 4.1-ESV-R7 to fix CVE-2012-3955 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: security bump to version 4.1-ESV-R6Gustavo Zacarias2012-07-301-1/+1
| | | | | | | Fixes CVE-2012-3571 and CVE-2012-3954. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* all packages: rename XXXTARGETS to xxx-packageArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* dhcp: needs MMUGustavo Zacarias2012-05-061-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: fix download URLPeter Korsgaard2012-03-151-1/+1
| | | | | | Tarball is in a subdir. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: security bump to version 4.1-ESV-R4Gustavo Zacarias2012-03-111-1/+1
| | | | | | | Bump to version 4.1-ESV-R4 to fix CVE-2011-4539 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: security bump to version 4.1-ESV-R3Gustavo Zacarias2011-11-091-3/+3
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: remove useless arguments from AUTOTARGETSThomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: allow IPv6 to be turned onHeiko Zuerker2011-04-251-2/+5
| | | | | Signed-off-by: Heiko Zuerker <smiley73@users.sourceforge.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package/dhcp: Fix config namePeter Korsgaard2011-02-011-1/+1
| | | | | | | ISC dhcp is no longer the only way of handling DHCP, so use a less generic config text. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: fix install -D invocation in target-installPeter Korsgaard2011-02-011-7/+10
| | | | | | | | | Closes #3181 When install -D is used (to ensure destination dirs exists), the destination file name has to be given as well. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dhcp: Bump to 4.1.1-P1 and convert to autotoolsThomas Petazzoni2010-07-173-545/+41
| | | | | | | | | | | | | | dhcp 3.0.5 was causing build issues due to its build system not based on the autotools. Instead of work-arounding dhcp 3.0.5 issues, this commit bumps to 4.1.1 which uses the autotools as the build system. The package is therefore converted to the autotools infrastructure. The dhcp_xecute patch is no longer needed, this feature seems to have been merged into the upstream dhcp (according to the manpage). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Do not let packages remove man pages, info pages and documentationThomas Petazzoni2010-04-111-25/+0
| | | | | | | | | | The cleanup of $(TARGET_DIR)/usr/share/man, $(TARGET_DIR)/usr/man, $(TARGET_DIR)/usr/share/info, $(TARGET_DIR)/usr/info, $(TARGET_DIR)/usr/share/doc and $(TARGET_DIR)/usr/doc is already done globally in the main Makefile. Therefore, there's no need to handle that on a per-package basis. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: Remove unnecessary dependencies on uclibc.Will Newton2009-09-031-3/+3
| | | | | | | | A C library will have been built by the toolchain makefiles, so there is no need for packages to explicitly depend on uclibc. Signed-off-by: Will Newton <will.newton@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package/: convert to DOWNLOAD helperPeter Korsgaard2009-01-161-1/+1
|
* package/: get rid of unneeded $(strip ..)Peter Korsgaard2008-12-081-4/+4
|
* Kconfig: remove 'default n'Peter Korsgaard2008-07-171-4/+0
| | | | 'default n' is the default, so there's no need to say it explicitly.
* buildroot: s/depends/depends on/Peter Korsgaard2008-06-191-3/+3
| | | | | The new kconfig is more strict regarding depends/depends on, so fixup the tree.
* - just use the strip binary to avoid confusing libtool (quotes)Bernhard Reutner-Fischer2007-10-011-1/+1
| | | | - use $(STRIPCMD) in packages to avoid clashes with $(STRIP)
* - cleanup and fixes (Cristian Ionescu-Idbohrn)Bernhard Reutner-Fischer2007-09-171-20/+50
|
* - sed -i -e "/;$/s/;$//g" $(egrep ";$" package/* package/*/*.mk toolchain/* ↵Bernhard Reutner-Fischer2007-08-211-1/+1
| | | | toolchain/*/*.mk */Makefile.in -l)
* Make sure directories are available before install of dhcp targetsUlf Samuelsson2007-08-201-0/+7
|
* Use <package>_VERSION in all <package>.mk instead of <package>_VERUlf Samuelsson2007-07-111-3/+3
|
* - add endian handling, mmap, memcmp checks to TARGET_CONFIGURE_ARGSBernhard Reutner-Fischer2007-06-271-1/+4
| | | | - use TARGET_CONFIGURE_ARGS where appropriate.
* Rename all INIT scripts to have the numerical prefixes to easily see the ↵"Steven J. Hill"2007-05-093-2/+2
| | | | start-up order.
* - provide -source targets for the 3 parts of the split dhcp.Bernhard Reutner-Fischer2007-02-161-0/+4
| | | | Closes #1223. Thanks
* bump versionEric Andersen2006-12-131-1/+1
|
* - use $(ZCAT) as configured by the user instead of hardcoded 'zcat' that may ↵Bernhard Reutner-Fischer2006-10-011-1/+1
| | | | | | not exist; Closes #971 Silly, unchecked sed -i -e "/[^b]zcat/s/zcat/\$\(ZCAT\)/g" $(svngrep "[^b]zcat" * -rl | grep -v Config.in)
* ver bump #958 by bowerymarcMike Frysinger2006-07-192-4/+4
|
* remove extra space after touchMike Frysinger2005-11-241-1/+1
|
* Add an empty dhclient-script to keep dhclient from complainingEric Andersen2005-09-132-0/+3
|
* marcusbrutus writes in Bug 393: version 3.0.2 no longer exists, upstream has ↵Mike Frysinger2005-08-281-1/+1
| | | | released 3.0.3 of dhcp
OpenPOWER on IntegriCloud