<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[HyperForum — [atftp] Fixed package with OpenRC]]></title>
		<link>https://forums.hyperbola.info/viewtopic.php?id=423</link>
		<atom:link href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=423&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [atftp] Fixed package with OpenRC.]]></description>
		<lastBuildDate>Sun, 04 Oct 2020 17:30:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[[atftp] Fixed package with OpenRC]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=2334#p2334</link>
			<description><![CDATA[<p>Hello together,</p><p>after the rework to throw out &quot;systemd&quot; is for now stopped and I needed <strong>atftp</strong> I did a rework of the package available in the stable repositories on my own. Perhaps others can make use of it?</p><p><strong>File: atftp-0.7-cflags.patch</strong></p><div class="codebox"><pre><code>--- atftp-0.7/configure.ac
+++ atftp-0.7/configure.ac
@@ -66,29 +66,6 @@
 dnl Check for AIX
 AC_AIX
 
-CFLAGS=&quot;-g -Wall -D_REENTRANT&quot;
-
-if test x$debug = xtrue; then
-   CFLAGS=&quot;$CFLAGS -O0 -DDEBUG&quot;
-else
-  if test -n &quot;$auto_cflags&quot;; then
-    if test -n &quot;$GCC&quot;; then
-      CFLAGS=&quot;$CFLAGS -g -O2 -Wall -Wno-implicit&quot;
-    else
-      case &quot;$host_os&quot; in
-        *hpux*)  CFLAGS=&quot;$CFLAGS +O3&quot;
-      ;;
-        *ultrix* | *osf*) CFLAGS=&quot;$CFLAGS -O -Olimit 2000&quot;
-      ;;
-        *)       CFLAGS=&quot;$CFLAGS -O2&quot;
-      ;;
-      esac
-    fi
-  else
-    CFLAGS=&quot;$CFLAGS -O2&quot;
-  fi
-fi
-
 AC_PROG_MAKE_SET
 AC_PROG_INSTALL</code></pre></div><p><strong>File: atftpd.confd</strong></p><div class="codebox"><pre><code># Parameters to be passed to ATFTPD
ATFTPD_ARGS=&quot;--no-multicast --maxthread 20 --verbose=6 --group nobody /srv/atftp&quot;</code></pre></div><p><strong>File: atftpd.initd</strong></p><div class="codebox"><pre><code>#!/sbin/openrc-run
# Copyright 2017 Hyperbola Project
# Distributed under the terms of the GNU General Public License v2

description=&quot;Advanced TFTP Daemon&quot;

command=&quot;/usr/bin/atftpd&quot;
command_args=&quot;--daemon --no-fork $ATFTPD_ARGS&quot;
command_background=&quot;yes&quot;
pidfile=&quot;/var/run/atftpd.pid&quot;

depend() {
    after net
}</code></pre></div><p><strong>File: PKGBUILD</strong></p><div class="codebox"><pre><code># Maintainer: Benjamin Bukowski &lt;benjamin.bukowski@gmail.com&gt;
# Contributor: Johannes Löthberg &lt;demizide@gmail.com&gt;

pkgname=atftp
pkgver=0.7.1
pkgrel=2.hyperbola0
pkgdesc=&#039;Client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349, with OpenRC support&#039;
arch=(i686 x86_64)
url=&#039;http://sourceforge.net/projects/atftp/&#039;
license=(GPL)
depends=(pcre readline)
backup=(etc/conf.d/atftpd)
source=(http://downloads.sf.net/sourceforge/atftp/atftp-$pkgver.tar.gz
        atftp-0.7-cflags.patch
        atftpd.initd
        atftpd.confd)
sha512sums=(&#039;af04e5bbbade0f4db1082d8d68fa1119db1d700891b3f109f3da3b22f89beb75521716e1e7abd91b4cb0e57ca1fff0f9ca0fa09588897da049ae266e3e539beb&#039;
            &#039;9227354689ea504f0500c244335a83d8a77dcb74c876ada1065c955f414e1f51e06dafcdb5d99f1fbb22036a074f9e46cada7378824d70f677ff6db931a35289&#039;
            &#039;6a2d2b3f9337b8db6ed65422c6836b93d42637da05cbde67b1b5e137e956021a74d07c7d2fa808b5254b54b31d12cf51bb15ad8f0cf4ec8cb7e6230f43fdeed1&#039;
            &#039;7379a9d3d48b1cb24befeec8291c074c32ed86369c72b226deda958a097ab280086a7926c7526bb0cfb5972a3a80156a7ce8e04946eac790d95731c833b4cf19&#039;)

prepare() {
  cd atftp-$pkgver
  # Respect our CFLAGS; needed below for building with -std=gnu89
  patch -Np1 -i ../atftp-0.7-cflags.patch
  autoreconf -vi
}

build() {
  cd atftp-$pkgver
  CFLAGS+=&#039; -std=gnu89&#039;
  ./configure --prefix=/usr --mandir=/usr/share/man --sbindir=/usr/bin \
              --enable-libreadline --disable-libwrap
  make
}

package() {
  cd atftp-$pkgver
  make DESTDIR=&quot;$pkgdir&quot; install

  install -Dm755 ../atftpd.initd &quot;$pkgdir&quot;/etc/init.d/atftpd
  install -Dm644 ../atftpd.confd &quot;$pkgdir&quot;/etc/conf.d/atftpd
  install -dm775 --group=nobody &quot;$pkgdir&quot;/srv/atftp 

  # remove in.tftpd link as it conflicts with extra/tftp-hpa
  rm &quot;${pkgdir}/usr/share/man/man8/in.tftpd.8&quot;
  rm &quot;${pkgdir}/usr/bin/in.tftpd&quot;
}</code></pre></div><p>Have fun with it. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Sun, 04 Oct 2020 17:30:49 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=2334#p2334</guid>
		</item>
	</channel>
</rss>
