Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hardcode path #141

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export HOSTCC = "${BUILD_CC}"
do_configure_prepend() {
# Replace sbin,bin paths with bitbake environment
sed -i -e 's;install_sbin: Tgt = ${DESTDIR}/sbin;install_sbin: Tgt = ${DESTDIR}/${base_sbindir};' \
-e 's;install_ubin: Tgt = ${DESTDIR}/usr/sbin;install_sbin: Tgt = ${DESTDIR}/${bindir};' \
-e 's;install_ubin: Tgt = ${DESTDIR}${sbindir};install_sbin: Tgt = ${DESTDIR}/${bindir};' \
${S}/Makefile
}

Expand Down
2 changes: 1 addition & 1 deletion meta-initramfs/recipes-devtools/dracut/dracut_git.bb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SUMMARY = "Initramfs generator using udev"
HOMEPAGE = "https://dracut.wiki.kernel.org/index.php/Main_Page"
DESCRIPTION = "Dracut is an event driven initramfs infrastructure. dracut (the tool) is used to create an initramfs image by copying tools and files from an installed system and combining it with the dracut framework, usually found in /usr/lib/dracut/modules.d."
DESCRIPTION = "Dracut is an event driven initramfs infrastructure. dracut (the tool) is used to create an initramfs image by copying tools and files from an installed system and combining it with the dracut framework, usually found in ${libdir}/dracut/modules.d."

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ do_install() {
chmod a+rx ${D}/${libdir}/*.so*
cp -R --no-dereference --preserve=mode,links ${S}/util/szap/channels-conf* ${D}/${docdir}/dvb-apps/szap/
cp -R --no-dereference --preserve=mode,links ${S}/util/szap/README ${D}/${docdir}/dvb-apps/szap/
cp -R --no-dereference --preserve=mode,links ${WORKDIR}/dvb-scan-table/* ${D}/usr/share/dvb
cp -R --no-dereference --preserve=mode,links ${WORKDIR}/dvb-scan-table/* ${D}${datadir}/dvb
}

PACKAGES =+ "dvb-evtest dvb-evtest-dbg \
Expand Down
4 changes: 2 additions & 2 deletions meta-networking/recipes-connectivity/blueman/blueman_2.1.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ FILES_${PN} += " \
FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/_blueman.a"

# In code, path to python is a variable that is replaced with path to native version of it
# during the configure stage, e.g ../recipe-sysroot-native/usr/bin/python3-native/python3.
# Replace it with #!/usr/bin/env python3
# during the configure stage, e.g ../recipe-sysroot-native${bindir}/python3-native/python3.
# Replace it with #!${bindir}/env python3
do_install_append() {
sed -i "1s/.*/#!\/usr\/bin\/env python3/" ${D}${prefix}/libexec/blueman-rfcomm-watcher \
${D}${prefix}/libexec/blueman-mechanism \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SRC_URI[md5sum] = "e63bdd65a4d2f6338f60b31e91bb5525"
SRC_URI[sha256sum] = "5a82a72fd9ad4cbbfb805bae615faa9b91a27855245de0fef3bcb06439394852"

# glib-2.0-native is needed for GSETTINGS_RULES autoconf macro from gsettings.m4
# xmlto-native is needed to populate /etc/xml/catalog.xml in the sysroot so that xsltproc finds the docbook xslt
# xmlto-native is needed to populate ${sysconfdir}/xml/catalog.xml in the sysroot so that xsltproc finds the docbook xslt
DEPENDS = "intltool-native glib-2.0-native libxslt-native docbook-xsl-stylesheets-native xmlto-native"

inherit gettext autotools bash-completion python3native gsettings systemd update-rc.d
Expand All @@ -24,7 +24,7 @@ PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_unitdir}/system/,--di
# when the nftables backend is available, because nftables supersedes all of them.
# However we still need iptables and ip6tables to be available otherwise any
# application relying on "direct passthrough" rules (such as docker) will break.
# /etc/sysconfig/firewalld is a Red Hat-ism, only referenced by
# ${sysconfdir}/sysconfig/firewalld is a Red Hat-ism, only referenced by
# the Red Hat-specific init script which we aren't using, so we disable that.
EXTRA_OECONF = "\
--with-nft=${sbindir}/nft \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ do_install() {
# remove scripts that required Perl(DBI)
rm -rf ${D}/${bindir}/radsqlrelay

cp -f ${WORKDIR}/freeradius ${D}/etc/init.d/radiusd
cp -f ${WORKDIR}/freeradius ${D}${sysconfdir}/init.d/radiusd
rm -f ${D}/${sbindir}/rc.radiusd
chmod +x ${D}/${sysconfdir}/init.d/radiusd
rm -rf ${D}/${localstatedir}/run/
Expand Down Expand Up @@ -171,7 +171,7 @@ pkg_postinst_${PN} () {
${sysconfdir}/init.d/populate-volatile.sh update
fi

# Fix ownership for /etc/raddb/*, /var/lib/radiusd
# Fix ownership for ${sysconfdir}/raddb/*, /var/lib/radiusd
chown -R radiusd:radiusd ${sysconfdir}/raddb
chown -R radiusd:radiusd ${localstatedir}/lib/radiusd
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ EXTRA_OECONF += "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-sc
--disable-static"

do_configure_append() {
# script has /usr/bin/python2 path hardcoded
# script has ${bindir}/python2 path hardcoded
sed -i -e 's=python2\.*=python=g' ${S}/trojans/tncc-wrapper.py
}
20 changes: 10 additions & 10 deletions meta-networking/recipes-connectivity/samba/samba_4.10.6.bb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb,"
#
PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,,"
PACKAGECONFIG[gnutls] = "--enable-gnutls,--disable-gnutls,gnutls,"
PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5,"
PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=${sbindir}/krb5kdc,,krb5,"

SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"
SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
Expand Down Expand Up @@ -146,7 +146,7 @@ do_install_append() {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${S}/bin/default/packaging/systemd/*.service ${D}${systemd_system_unitdir}/
sed -e 's,\(ExecReload=\).*\(/kill\),\1${base_bindir}\2,' \
-e 's,/etc/sysconfig/samba,${sysconfdir}/default/samba,' \
-e 's,${sysconfdir}/sysconfig/samba,${sysconfdir}/default/samba,' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. In case ${sysconfdir} changes (that's what this patch is about) sed will stop working.

There are other cases like this in this patch

-i ${D}${systemd_system_unitdir}/*.service

if [ "${@bb.utils.contains('PACKAGECONFIG', 'ad-dc', 'yes', 'no', d)}" = "no" ]; then
Expand All @@ -162,8 +162,8 @@ do_install_append() {
sed -e 's,/opt/samba/bin,${sbindir},g' \
-e 's,/opt/samba/smb.conf,${sysconfdir}/samba/smb.conf,g' \
-e 's,/opt/samba/log,${localstatedir}/log/samba,g' \
-e 's,/etc/init.d/samba.server,${sysconfdir}/init.d/samba,g' \
-e 's,/usr/bin,${base_bindir},g' \
-e 's,${sysconfdir}/init.d/samba.server,${sysconfdir}/init.d/samba,g' \
-e 's,${bindir},${base_bindir},g' \
-i ${D}${sysconfdir}/init.d/samba

install -d ${D}${sysconfdir}/samba
Expand All @@ -190,12 +190,12 @@ do_install_append() {
chmod 0750 ${D}${sysconfdir}/sudoers.d
rm -rf ${D}/run ${D}${localstatedir}/run ${D}${localstatedir}/log

sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba-gpupdate
sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_upgradedns
sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_spnupdate
sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_kcc
sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_dnsupdate
sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${bindir}/samba-tool
sed -i -e 's,${PYTHON},${bindir}/env python3/,g' ${D}${sbindir}/samba-gpupdate
sed -i -e 's,${PYTHON},${bindir}/env python3/,g' ${D}${sbindir}/samba_upgradedns
sed -i -e 's,${PYTHON},${bindir}/env python3/,g' ${D}${sbindir}/samba_spnupdate
sed -i -e 's,${PYTHON},${bindir}/env python3/,g' ${D}${sbindir}/samba_kcc
sed -i -e 's,${PYTHON},${bindir}/env python3/,g' ${D}${sbindir}/samba_dnsupdate
sed -i -e 's,${PYTHON},${bindir}/env python3/,g' ${D}${bindir}/samba-tool

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ do_install_append() {
install -d ${D}${sysconfdir}/snort/preproc_rules
install -d ${D}${sysconfdir}/init.d
for i in map config conf dtd; do
cp ${S}/etc/*.$i ${D}${sysconfdir}/snort/
cp ${S}${sysconfdir}/*.$i ${D}${sysconfdir}/snort/
done

# fix the hardcoded path and lib name
Expand Down
4 changes: 2 additions & 2 deletions meta-networking/recipes-connectivity/ufw/ufw_0.33.bb
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ FILES_${PN} += " \

REQUIRED_DISTRO_FEATURES = "ipv6"

DISTUTILS_BUILD_ARGS_append = " --iptables-dir /usr/sbin"
DISTUTILS_INSTALL_ARGS_append = " --iptables-dir /usr/sbin"
DISTUTILS_BUILD_ARGS_append = " --iptables-dir ${sbindir}"
DISTUTILS_INSTALL_ARGS_append = " --iptables-dir ${sbindir}"
2 changes: 1 addition & 1 deletion meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ inherit perlnative pkgconfig

do_configure_append () {
# Make sure we use our nativeperl wrapper
sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl
sed -i "1s:#!.*:#!${bindir}/env nativeperl:" ${S}/*.pl
cp ${WORKDIR}/long-help ${S}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ do_install () {

cp -dR ${S}/libopeniscsiusr/libopeniscsiusr.so* ${D}${libdir}
install -p -m 644 ${S}/doc/iscsiadm.8 ${S}/doc/iscsid.8 ${D}/${mandir}/man8
install -p -m 644 ${S}/etc/iscsid.conf ${D}${sysconfdir}/iscsi
install -p -m 644 ${S}${sysconfdir}/iscsid.conf ${D}${sysconfdir}/iscsi
install -p -m 755 ${WORKDIR}/initd.debian ${D}${sysconfdir}/init.d/iscsid

sed -i -e "s:= /sbin/iscsid:= ${sbindir}/iscsid:" ${D}${sysconfdir}/iscsi/iscsid.conf
Expand All @@ -82,7 +82,7 @@ do_install () {
install -d ${D}${sysconfdir}/tmpfiles.d
echo "d /run/${BPN}/lock - - - -" \
> ${D}${sysconfdir}/tmpfiles.d/iscsi.conf
install -d ${D}/etc/default/
install -d ${D}${sysconfdir}/default/
install -p -m 755 ${WORKDIR}/iscsi-initiator ${D}${sysconfdir}/default/

install -d ${D}${systemd_unitdir}/system/
Expand All @@ -92,15 +92,15 @@ do_install () {
install -d ${D}${nonarch_libdir}/iscsi
install -m 0755 ${WORKDIR}/set_initiatorname ${D}${nonarch_libdir}/iscsi
else
install -d ${D}/etc/default/volatiles
install -m 0644 ${WORKDIR}/99_iscsi-initiator-utils ${D}/etc/default/volatiles
install -d ${D}${sysconfdir}/default/volatiles
install -m 0644 ${WORKDIR}/99_iscsi-initiator-utils ${D}${sysconfdir}/default/volatiles
fi
}

pkg_postinst_${PN}() {
if [ "x$D" = "x" ]; then
if [ -e /etc/init.d/populate-volatile.sh ]; then
/etc/init.d/populate-volatile.sh update
if [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
${sysconfdir}/init.d/populate-volatile.sh update
elif command -v systemd-tmpfiles >/dev/null; then
systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/iscsi.conf
fi
Expand Down
2 changes: 1 addition & 1 deletion meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ inherit autotools pkgconfig ptest update-rc.d systemd

PACKAGES =+ "${PN}-libs"

FILES_${PN}-libs = "${libdir}/${BPN}/*.so /usr/lib/${BPN}/*.so"
FILES_${PN}-libs = "${libdir}/${BPN}/*.so ${libdir}/${BPN}/*.so"

INSANE_SKIP_${PN}-libs = "dev-so"
RDEPENDS_${PN} += "${PN}-libs"
Expand Down
20 changes: 10 additions & 10 deletions meta-networking/recipes-daemons/postfix/postfix.inc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ do_install () {
chmod g+s ${D}${sbindir}/postqueue
chmod g+s ${D}${sbindir}/postdrop

rm -rf ${D}/etc/postfix/makedefs.out
rm -rf ${D}${sysconfdir}/postfix/makedefs.out
}

do_install_append_class-native() {
Expand All @@ -186,14 +186,14 @@ do_install_append_class-native() {
}

ALTERNATIVE_${PN} = "sendmail mailq newaliases"
# /usr/lib/sendmial is required by LSB core test
# ${libdir}/sendmial is required by LSB core test
ALTERNATIVE_${PN}_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail"
ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq"
ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases"
ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix"
ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
ALTERNATIVE_TARGET[usr-lib-sendmail] = "${sbindir}/sendmail.postfix"
ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail"
ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "${libdir}/sendmail"

ALTERNATIVE_PRIORITY = "120"

Expand All @@ -205,20 +205,20 @@ ALTERNATIVE_LINK_NAME[sendmail.1] = "${mandir}/man1/sendmail.1"
PACKAGE_WRITE_DEPS += "postfix-native"
pkg_postinst_${PN} () {
if [ "x$D" = "x" ]; then
touch /etc/aliases
touch ${sysconfdir}/aliases
newaliases

# generate virtual_alias, default is hash
touch /etc/postfix/virtual_alias
postmap /etc/postfix/virtual_alias
touch ${sysconfdir}/postfix/virtual_alias
postmap ${sysconfdir}/postfix/virtual_alias
else
touch $D/etc/aliases
touch $D${sysconfdir}/aliases
# This can fail depending on host setup
if ! newaliases -C $D/etc/postfix/main.cf -oA$D/etc/aliases; then
if ! newaliases -C $D${sysconfdir}/postfix/main.cf -oA$D${sysconfdir}/aliases; then
$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}
else
touch $D/etc/postfix/virtual_alias
postmap -c $D/etc/postfix $D/etc/postfix/virtual_alias
touch $D${sysconfdir}/postfix/virtual_alias
postmap -c $D${sysconfdir}/postfix $D${sysconfdir}/postfix/virtual_alias
fi

fi
Expand Down
4 changes: 2 additions & 2 deletions meta-networking/recipes-daemons/proftpd/proftpd_1.3.6.bb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ do_install () {
sed -i '/ *Group[ \t]*/s/ftp/${FTPGROUP}/' ${D}${sysconfdir}/proftpd.conf
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/proftpd-basic.init ${D}${sysconfdir}/init.d/proftpd
sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/proftpd
sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/proftpd
sed -i 's!${sbindir}/!${sbindir}/!g' ${D}${sysconfdir}/init.d/proftpd
sed -i 's!${sysconfdir}/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/proftpd
sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/proftpd
sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/proftpd

Expand Down
8 changes: 4 additions & 4 deletions meta-networking/recipes-daemons/radvd/radvd.inc
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ do_install_append () {
${D}${docdir}/radvd
# Install init script and volatiles
install -m 0755 ${WORKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd
sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd
sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd
sed -i 's!${sbindir}/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd
sed -i 's!${sysconfdir}/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd
sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/radvd
sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd

Expand All @@ -58,7 +58,7 @@ USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"

pkg_postinst_${PN} () {
if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then
/etc/init.d/populate-volatile.sh update
if [ -z "$D" -a -x ${sysconfdir}/init.d/populate-volatile.sh ]; then
${sysconfdir}/init.d/populate-volatile.sh update
fi
}
4 changes: 2 additions & 2 deletions meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ do_install() {
install -m 755 -d ${D}${localstatedir}/lib/tftpboot/
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/tftpd-hpa
sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa
sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa
sed -i 's!${sbindir}/!${sbindir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa
sed -i 's!${sysconfdir}/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa
sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa
sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/tftpd-hpa

Expand Down
4 changes: 2 additions & 2 deletions meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ CFLAGS_append_libc-musl = " -D_GNU_SOURCE -include fcntl.h"
EXTRA_OEMAKE = "-e MAKEFLAGS="

do_configure() {
# Fix hardcoded /usr, /etc, /var mess.
# Fix hardcoded /usr, ${sysconfdir}, /var mess.
cat tunables.c|sed s:\"/usr:\"${prefix}:g|sed s:\"/var:\"${localstatedir}:g \
|sed s:\"/etc:\"${sysconfdir}:g > tunables.c.new
|sed s:\"${sysconfdir}:\"${sysconfdir}:g > tunables.c.new
mv tunables.c.new tunables.c
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ do_install() {
install -m 0755 ${S}/bin/arno-iptables-firewall ${D}${sbindir}
install -m 0755 ${S}/bin/arno-fwfilter ${D}${bindir}
cp -r ${S}/share/arno-iptables-firewall/* ${D}${datadir}/arno-iptables-firewall
cp -r ${S}/etc/arno-iptables-firewall/* ${D}${sysconfdir}/arno-iptables-firewall
cp -r ${S}${sysconfdir}/arno-iptables-firewall/* ${D}${sysconfdir}/arno-iptables-firewall
install -m 0644 ${S}/${systemd_unitdir}/system/arno-iptables-firewall.service ${D}${systemd_unitdir}/system
sed -i -e 's%/usr/local/sbin%${bindir}%g' ${D}${systemd_unitdir}/system/arno-iptables-firewall.service
sed -i -e 's%/usr/local/sbin%${sbindir}%g' ${D}${bindir}/arno-iptables-firewall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ do_install_append() {
install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/conntrackd

# Fix hardcoded paths in scripts
sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd
sed -i 's!/etc/!${sysconfdir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd
sed -i 's!${sbindir}/!${sbindir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd
sed -i 's!${sysconfdir}/!${sysconfdir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd
sed -i 's!/var/!${localstatedir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd ${D}/${sysconfdir}/conntrackd/conntrackd.conf.sample
sed -i 's!^export PATH=.*!export PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}/${sysconfdir}/init.d/conntrackd
}
4 changes: 2 additions & 2 deletions meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ do_install () {
install -m 0755 ${WORKDIR}/ebtables.common ${D}${sbindir}/ebtables.common
# Fix hardcoded paths in scripts
sed -i 's!/sbin/!${base_sbindir}/!g' ${D}${sbindir}/ebtables.common
sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sbindir}/ebtables.common
sed -i 's!${sysconfdir}/!${sysconfdir}/!g' ${D}${sbindir}/ebtables.common

install -d ${D}${sysconfdir}/init.d
install -d ${D}${sysconfdir}/default
install -d ${D}${sysconfdir}/ebtables
oe_runmake DESTDIR='${D}' install
install -m 0755 ${WORKDIR}/ebtables.init ${D}/${sysconfdir}/init.d/ebtables
mv ${D}${sysconfdir}/default/ebtables-config ${D}${sysconfdir}/default/ebtables
sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/ebtables
sed -i 's!${sbindir}/!${sbindir}/!g' ${D}${sysconfdir}/init.d/ebtables

# Replace upstream ebtables-save perl script with Fedora bash based rewrite
# http://pkgs.fedoraproject.org/cgit/rpms/ebtables.git/tree/ebtables-save
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ do_install () {
rm -rf ${D}${mandir}/man1
install -D -m 4750 ${B}/telnetlogin/telnetlogin ${D}/${libdir}/telnetlogin
# fix up hardcoded paths
sed -i -e 's,/usr/sbin/,${sbindir}/,' ${WORKDIR}/telnet-xinetd
install -d ${D}/etc/xinetd.d/
install -p -m644 ${WORKDIR}/telnet-xinetd ${D}/etc/xinetd.d/telnet
sed -i -e 's,${sbindir}/,${sbindir}/,' ${WORKDIR}/telnet-xinetd
install -d ${D}${sysconfdir}/xinetd.d/
install -p -m644 ${WORKDIR}/telnet-xinetd ${D}${sysconfdir}/xinetd.d/telnet
}

inherit update-alternatives
Expand Down
2 changes: 1 addition & 1 deletion meta-networking/recipes-protocols/dante/dante_1.4.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SRC_URI = "https://www.inet.no/dante/files/dante-${PV}.tar.gz \
SRC_URI[md5sum] = "68c2ce12119e12cea11a90c7a80efa8f"
SRC_URI[sha256sum] = "b6d232bd6fefc87d14bf97e447e4fcdeef4b28b16b048d804b50b48f261c4f53"

# without --without-gssapi, config.log will contain reference to /usr/lib
# without --without-gssapi, config.log will contain reference to ${libdir}
# as a consequence of GSSAPI path being set to /usr by default.
# --with-gssapi-path=PATH specify gssapi path
# --without-gssapi disable gssapi support
Expand Down
Loading