Skip to content

Commit

Permalink
net-misc/netkit-telnetd: change sed delimiter
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/715706
Signed-off-by: Paolo Pedroni <[email protected]>
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Closes: gentoo#18412
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
PPed72 authored and juippis committed Dec 1, 2020
1 parent df7cab9 commit be181e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions net-misc/netkit-telnetd/netkit-telnetd-0.17-r12.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ src_prepare() {
# better to just stay in sync with debian's own netkit-telnet
# package. Lots of bug fixes by them over time which were not in
# our telnetd.
EPATCH_FORCE="yes" EPATCH_SUFFIX="diff" eapply "${WORKDIR}"/debian/patches
EPATCH_FORCE="yes" EPATCH_SUFFIX="diff" eapply "${WORKDIR}/debian/patches"

# Patch: [1]
# after the deb patch we need to add a small patch that defines
# gnu source. This is needed for gcc-3.4.x (needs to be pushed
# back to the deb folk?)
eapply "${FILESDIR}"/netkit-telnetd-0.17-cflags-gnu_source.patch
eapply "${FILESDIR}/netkit-telnetd-0.17-cflags-gnu_source.patch"

# Fix portability issues.
sed -i \
-e 's/echo -n/printf %s/' \
-e 's@echo -n@printf %s@' \
configure || die
default
}
Expand All @@ -58,9 +58,9 @@ src_configure() {
./configure --prefix=/usr || die

sed -i \
-e "s/-pipe -O2/${CFLAGS}/" \
-e "s/^\(LDFLAGS=\).*/\1${LDFLAGS}/" \
-e "s/-Wpointer-arith//" \
-e "s@-pipe -O2@${CFLAGS}@" \
-e "s@^\(LDFLAGS=\).*@\1${LDFLAGS}@" \
-e "s@-Wpointer-arith@@" \
MCONFIG || die
}

Expand All @@ -81,9 +81,9 @@ src_install() {
dosym telnetd.8 /usr/share/man/man8/in.telnetd.8
doman telnetlogin/telnetlogin.8
dodoc BUGS ChangeLog README
dodoc "${FILESDIR}"/net.issue.sample
dodoc "${FILESDIR}/net.issue.sample"
newdoc telnet/README README.telnet
newdoc telnet/TODO TODO.telnet
insinto /etc/xinetd.d
newins "${FILESDIR}"/telnetd.xinetd telnetd
newins "${FILESDIR}/telnetd.xinetd" telnetd
}

0 comments on commit be181e0

Please sign in to comment.