<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=386&amp;type=atom" />
	<updated>2020-08-27T15:42:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=386</id>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2284#p2284" />
			<content type="html"><![CDATA[<p>Ah okay I see: That&#039;s more about an error as the forum is not the best place for scripts. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Regarding the missing file, look here: <a href="https://mirror.fsf.org/hyperbola/gnu-plus-linux-libre/stable/sources/hyperbola/dhcpcd-6.11.6-1.hyperbola1.src.tar.gz">https://mirror.fsf.org/hyperbola/gnu-pl … src.tar.gz</a></p><p>The corresponding package should contain everything for you to download and unpack for later compilation. In fact that&#039;s the best place to look after the packages right now.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2020-08-27T15:42:18Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2284#p2284</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2283#p2283" />
			<content type="html"><![CDATA[<p>well i guess its working how do i check the real service name?<br />for the pkgbuild i fixed this<br /> </p><div class="codebox"><pre><code>#
 Maintainer (Arch): Ronald van Haren &lt;ronald.archlinux.org&gt;</code></pre></div><p>to </p><div class="codebox"><pre><code>#Maintainer (Arch): Ronald van Haren &lt;ronald.archlinux.org&gt;</code></pre></div><p>then cause im noob i wont fix what comes next <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />==&gt; ERROR: install file (dhcpcd.install) does not exist or is not a regular file<br />and las this line </p><div class="codebox"><pre><code>                 &#039;dhcpcd.initd&#039;)</code></pre></div><p>is there a way of checking pkgbuild errors without installing it?</p>]]></content>
			<author>
				<name><![CDATA[rachad]]></name>
			</author>
			<updated>2020-08-27T15:21:36Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2283#p2283</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2282#p2282" />
			<content type="html"><![CDATA[<p>Thanks, could you share the errors with the PKGBUILD-script itself?<br />Besides it is always relevant what service-name is resulting. If I&#039;m correct the name would be <strong>dhcpcd-hardened</strong>.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2020-08-24T18:10:23Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2282#p2282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2280#p2280" />
			<content type="html"><![CDATA[<p>how to make dhcpcd-hardened-script work i couldn&#039;t add it to <strong>rc-update add dhcpcd-hardened-script default </strong><br />but just installing it wont delete <strong>dhcpcd.duid</strong> on startup</p><p>note &gt;&gt; i didn&#039;t install from your pkgbuild throgh if i should do so there are some build errors in ur first pkgbuild</p>]]></content>
			<author>
				<name><![CDATA[rachad]]></name>
			</author>
			<updated>2020-08-23T23:31:36Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2280#p2280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2062#p2062" />
			<content type="html"><![CDATA[<p>Thanks and yes: It seems being some kind of conflict. Solved for now with those points above, but I&#039;ll test these with another installation later on. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2020-06-22T08:43:08Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2062#p2062</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2060#p2060" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>throgh wrote:</cite><blockquote><p>Thanks for the insight: Have you added all the services (including <strong>(open)ntpd</strong>) to the runlevel <em>default</em>? My problem results therefore and those hooks mentioned. Before the last update of <strong>dhcpcd</strong> this worked for my installation. Another problem to figure out: With my new recompiled package <strong>openntpd</strong> refused to work and start so I&#039;ve also modified the service and build my own package. Now working.</p><p>To finalize a first analysis: It seems all about the dependencies within starting routine and what is defined within the init-scripts as being &quot;needed&quot;. Especially the <strong>dhcpcd-hardened-script</strong> has some problems when executing on startup as it is a shell-script without runtime-behaviour for a long run being logged in. So the corresponding service is marked as &quot;crashed&quot; afterwards. All in all:</p><ul><li><p>modified shell-script for having dhcpcd started with it at start</p></li><li><p>compiled without hook-deployment as it seems being more independent for now and starting just dhcpcd</p></li><li><p>reconfigured openntpd for having nothing more than a markup to start net instead of needing net</p></li></ul><p>It&#039;s a little bit more after the philosophy having just one application with one clear task and without some hooks to start or even look for others.</p></blockquote></div><p>Hmm, i don&#039;t use ntpd, at least to my knowledge, maybe there is a conflict. <img src="https://forums.hyperbola.info/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></content>
			<author>
				<name><![CDATA[zapper]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=117</uri>
			</author>
			<updated>2020-06-22T03:12:58Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2060#p2060</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2057#p2057" />
			<content type="html"><![CDATA[<p>Thanks for the insight: Have you added all the services (including <strong>(open)ntpd</strong>) to the runlevel <em>default</em>? My problem results therefore and those hooks mentioned. Before the last update of <strong>dhcpcd</strong> this worked for my installation. Another problem to figure out: With my new recompiled package <strong>openntpd</strong> refused to work and start so I&#039;ve also modified the service and build my own package. Now working.</p><p>To finalize a first analysis: It seems all about the dependencies within starting routine and what is defined within the init-scripts as being &quot;needed&quot;. Especially the <strong>dhcpcd-hardened-script</strong> has some problems when executing on startup as it is a shell-script without runtime-behaviour for a long run being logged in. So the corresponding service is marked as &quot;crashed&quot; afterwards. All in all:</p><ul><li><p>modified shell-script for having dhcpcd started with it at start</p></li><li><p>compiled without hook-deployment as it seems being more independent for now and starting just dhcpcd</p></li><li><p>reconfigured openntpd for having nothing more than a markup to start net instead of needing net</p></li></ul><p>It&#039;s a little bit more after the philosophy having just one application with one clear task and without some hooks to start or even look for others.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2020-06-21T23:08:25Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2057#p2057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2052#p2052" />
			<content type="html"><![CDATA[<p>what problems have you been having? I just wondered, as I haven&#039;t had any dhcpcd issues since last update. </p><p>wpa_supplicant + dhcpcd + dhcpcd-ui works for me. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[zapper]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=117</uri>
			</author>
			<updated>2020-06-21T22:33:34Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2052#p2052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[dhcpcd & dhcpcd-hardened-script] Malfunctioning and problems]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2050#p2050" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I think after the last <a href="https://git.hyperbola.info:50100/packages/core.git/commit/dhcpcd?id=f5c5e6a72bdc27fe8bb1d1229989889217793b86">update</a> there are some issues coming up, exactly when having <strong>wpa_supplicant</strong> and <strong>ntpd</strong> linked and started as own services. So this is no further version bump, but another rebuild of the package itself. So here is my proposal for a tix.</p><p>First <strong>dhcpcd</strong> itself:</p><div class="codebox"><pre><code># Maintainer (Arch): Ronald van Haren &lt;ronald.archlinux.org&gt;
# Contributor (Arch): Tom Killian &lt;tom.archlinux.org&gt;
# Contributor (Arch): Judd Vinet &lt;jvinet.zeroflux.org&gt;
# Contributor (Artix): artoo &lt;artoo@cromnix.org&gt;
# Maintainer: André Silva &lt;emulatorman@hyperbola.info&gt;

pkgname=dhcpcd
pkgver=6.11.6
_debver=6.10.1
_debrel=1
pkgrel=1.hyperbola1
pkgdesc=&quot;RFC2131 compliant DHCP client daemon, with logger recommendation and eudev and OpenRC support&quot;
url=&quot;https://roy.marples.name/projects/dhcpcd&quot;
arch=(&#039;i686&#039; &#039;x86_64&#039;)
license=(&#039;Simplified-BSD&#039;)
groups=(&#039;base&#039;)
depends=(&#039;glibc&#039; &#039;sh&#039; &#039;eudev&#039;)
makedepends=(&#039;quilt&#039;)
optdepends=(&#039;openresolv: resolvconf support&#039;
            &#039;logger: message logging support&#039;)
provides=(&#039;dhcp-client&#039;)
backup=(&#039;etc/dhcpcd.conf&#039;)
options=(&#039;emptydirs&#039;)  # We Need the Empty /var/lib/dhcpcd Directory
install=dhcpcd.install
source=(&quot;https://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.xz&quot;
        &quot;https://deb.debian.org/debian/pool/main/d/dhcpcd5/dhcpcd5_$_debver-$_debrel.debian.tar.xz&quot;
        &#039;dhcpcd.initd&#039;)
sha512sums=(&#039;f032f6175a9aaef241c823814021bff6cf9c6f57e6669578dedbf7890c0ffa47115b0164d3d4d2ea63b98ae865c471f50b9b1bdcba6ffca13c1d307b22b5ae0b&#039;
            &#039;889c9ffcb31a93c2f3b4c11fab0d02cd5f9de70d5edd0b838d91a2da66f3448b1d002d6c09ac898cc302f3bb33e3db3c2d0c2dc629a67478588023322d639e52&#039;
            &#039;6d3220155f2d9ed3e3a00afd378eeb70d435e19804201f8bb35498f1f7f3dfdaeaa2f4a01a18f5e96b457d9c173bc6a206b3e67ebf6d95da7e7b350dcd153fde&#039;)

prepare() {
  cd &quot;${srcdir}/${pkgname}-${pkgver}&quot;

  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS=&#039;-p ab --no-timestamps --no-index&#039;
    export QUILT_DIFF_ARGS=&#039;--no-timestamps&#039;

    mv &quot;$srcdir&quot;/debian .

    quilt push -av
  fi
}

build() {
  cd &quot;${srcdir}/${pkgname}-${pkgver}&quot;

  # configure variables
  ./configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --sbindir=/sbin \
      --libdir=/lib \
      --libexecdir=/usr/libexec/dhcpcd \
      --dbdir=/var/lib/dhcpcd \
      --rundir=/run

  # Build
  make
}

check() {
  cd &quot;${srcdir}/${pkgname}-${pkgver}&quot;

  make test
}

package() {
  cd &quot;${srcdir}/${pkgname}-${pkgver}&quot;
  make DESTDIR=&quot;${pkgdir}&quot; install

  # Install License
  install -d &quot;$pkgdir/usr/share/licenses/$pkgname&quot;
  sed 26q &quot;$srcdir/$pkgname-$pkgver/control.h&quot; \
      &gt;&gt;&quot;$pkgdir/usr/share/licenses/$pkgname/LICENSE&quot;

  # Set Options in /etc/dhcpcd.conf
  echo noipv4ll &gt;&gt; &quot;${pkgdir}/etc/dhcpcd.conf&quot; # Disable ip4vall

  # Set network group permissions in /etc/dhcpcd.conf for dhcpcd-ui
  chgrp network &quot;${pkgdir}/etc/dhcpcd.conf&quot;
  chmod g+w &quot;${pkgdir}/etc/dhcpcd.conf&quot;

  # Install OpenRC init file
  install -Dm755 &quot;${srcdir}/dhcpcd.initd&quot; &quot;${pkgdir}/etc/init.d/dhcpcd&quot;
}</code></pre></div><p>Removing the hooks within build for now - this has to be tested with hooks but under own conditions as this is not only a renewal of the version itself.</p><p>Afterwards a proposal for <strong><a href="https://www.hyperbola.info/packages/core/any/dhcpcd-hardened-script/">dhcpcd-hardened-script</a></strong>.<br />The initd-definition for OpenRC:</p><div class="codebox"><pre><code>#!/sbin/openrc-run
# Copyright 2017-2019 Hyperbola Project
# Distributed under the terms of the GNU General Public License v2

description=&quot;dhcpcd-hardened service&quot;
pidfile=&quot;/var/run/dhcpcd-hardened.pid&quot;

depend() {
    need localmount
    before net
}

start() {
    /usr/libexec/dhcpcd/dhcpcd_hardened.sh
    ebegin &quot;Starting DHCP Client Daemon in hardened mode&quot;
        /sbin/dhcpcd -q
    eend $?
}</code></pre></div><p>The PKGBUILD:</p><div class="codebox"><pre><code># Maintainer: Luke R. &lt;g4jc@openmailbox.org&gt; GPG: rsa4096/3EAE8697
# Contributor: André Silva &lt;emulatorman@hyperbola.info&gt;

pkgname=dhcpcd-hardened-script
pkgver=0.1
pkgrel=8
pkgdesc=&quot;Removes Hostname and resets DUID on bootup to prevent DHCP leaks on the network&quot;
arch=(any)
license=(GPL-2)
depends=(&#039;dhcpcd&#039;)
optdepends=(&#039;logger: message logging support&#039;)
source=(&#039;dhcpcd_hardened.sh&#039;
        &#039;dhcpcd-hardened.initd&#039;
        &#039;COPYING&#039;)
sha512sums=(&#039;cc830d52926752e066bdd05c3e550f9170733593e4c8055ffd644bc5c43c249b1e864a117b45572ad128f7d779880b7f6db1e0bc8899208091cb29852d3d00fb&#039;
            &#039;745b0d64f20949f3ee0add116e48a85bf277add72d4f872eebdd8d1e285c7e1ebd978bcc7b87df744d3cb4fd0263dd22d1358cd1bd285e6d60a7257327539f49&#039;
            &#039;aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957&#039;)

package() {
  install -Dm755 dhcpcd_hardened.sh &quot;$pkgdir&quot;/usr/libexec/dhcpcd/dhcpcd_hardened.sh
  install -Dm755 dhcpcd-hardened.initd &quot;$pkgdir&quot;/etc/init.d/dhcpcd-hardened
  install -Dm644 COPYING &quot;$pkgdir&quot;/usr/share/licenses/$pkgname/COPYING
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2020-06-21T13:10:51Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2050#p2050</id>
		</entry>
</feed>
