Replace systemd_unitdir/system with systemd_system_unitdir

This commit is contained in:
Pau Espin 2017-07-24 16:31:57 +02:00
parent c8c2531e08
commit 7990e01fcd
19 changed files with 65 additions and 65 deletions

View File

@ -9,7 +9,7 @@ activate_bsc() {
} }
activate_systemd_bsc() { activate_systemd_bsc() {
ln -sf ${systemd_unitdir}/system/osmo-bsc.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/ ln -sf ${systemd_system_unitdir}/osmo-bsc.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/
} }
IMAGE_PREPROCESS_COMMAND += "${@base_contains('DISTRO_FEATURES','systemd','activate_systemd_bsc','activate_bsc',d)}; " IMAGE_PREPROCESS_COMMAND += "${@base_contains('DISTRO_FEATURES','systemd','activate_systemd_bsc','activate_bsc',d)}; "

View File

@ -6,7 +6,7 @@ activate_nitb() {
} }
activate_systemd_nitb() { activate_systemd_nitb() {
ln -sf ${systemd_unitdir}/system/osmo-nitb.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/ ln -sf ${systemd_system_unitdir}/osmo-nitb.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/
} }
IMAGE_PREPROCESS_COMMAND += "${@base_contains('DISTRO_FEATURES','systemd','activate_systemd_nitb','activate_nitb',d)}; " IMAGE_PREPROCESS_COMMAND += "${@base_contains('DISTRO_FEATURES','systemd','activate_systemd_nitb','activate_nitb',d)}; "

View File

@ -19,9 +19,9 @@ do_install() {
install -m 0755 ${WORKDIR}/sysmocom-backup-data ${D}${sbindir}/ install -m 0755 ${WORKDIR}/sysmocom-backup-data ${D}${sbindir}/
install -m 0755 ${WORKDIR}/sysmocom-restore-data ${D}${sbindir}/ install -m 0755 ${WORKDIR}/sysmocom-restore-data ${D}${sbindir}/
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/data.mount ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/data.mount ${D}${systemd_system_unitdir}/
install -m 0644 ${WORKDIR}/sysmocom-restore.service ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/sysmocom-restore.service ${D}${systemd_system_unitdir}/
} }
SYSTEMD_PACKAGES = "${PN}" SYSTEMD_PACKAGES = "${PN}"

View File

@ -14,7 +14,7 @@ FILES_${PN} += "${systemd_unitdir}"
do_install() { do_install() {
install -d ${D}${sysconfdir} install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}/ install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}/
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/ install -d ${D}${systemd_system_unitdir}/multi-user.target.wants/
install -m 0644 /${WORKDIR}/udhcpd.service ${D}${systemd_unitdir}/system/ install -m 0644 /${WORKDIR}/udhcpd.service ${D}${systemd_system_unitdir}/
ln -sf ../udhcpd.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ ln -sf ../udhcpd.service ${D}${systemd_system_unitdir}/multi-user.target.wants/
} }

View File

@ -6,16 +6,16 @@ SRC_URI = "\
file://early-date \ file://early-date \
file://early-date.service" file://early-date.service"
FILES_${PN} = "${systemd_unitdir}/system /sbin" FILES_${PN} = "${systemd_system_unitdir} /sbin"
RDPEPENDS_${PN} = "systemd" RDPEPENDS_${PN} = "systemd"
do_install() { do_install() {
install -d ${D}/sbin install -d ${D}/sbin
install -d ${D}${systemd_unitdir}/system/basic.target.wants install -d ${D}${systemd_system_unitdir}/basic.target.wants
# Copy the service file and link it # Copy the service file and link it
install -m 0644 ${WORKDIR}/early-date.service ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/early-date.service ${D}${systemd_system_unitdir}
ln -sf ../early-date.service ${D}${systemd_unitdir}/system/basic.target.wants/ ln -sf ../early-date.service ${D}${systemd_system_unitdir}/basic.target.wants/
# Hardcode to /sbin # Hardcode to /sbin
# TODO: Set the date as of the build time.. # TODO: Set the date as of the build time..

View File

@ -94,10 +94,10 @@ do_install_append() {
install -d ${D}/${sysconfdir}/network/if-up.d install -d ${D}/${sysconfdir}/network/if-up.d
ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_system_unitdir}/
install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_system_unitdir}/
install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_system_unitdir}/
install -d ${D}${systemd_unitdir}/ntp-units.d install -d ${D}${systemd_unitdir}/ntp-units.d
install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
@ -145,13 +145,13 @@ FILES_ntpdate = "${sbindir}/ntpdate \
${sysconfdir}/network/if-up.d/ntpdate-sync \ ${sysconfdir}/network/if-up.d/ntpdate-sync \
${bindir}/ntpdate-sync \ ${bindir}/ntpdate-sync \
${sysconfdir}/default/ntpdate \ ${sysconfdir}/default/ntpdate \
${systemd_unitdir}/system/ntpdate.service \ ${systemd_system_unitdir}/ntpdate.service \
${bindir}/ntpdate-cron \ ${bindir}/ntpdate-cron \
${sysconfdir}/cron.d/ntpdate \ ${sysconfdir}/cron.d/ntpdate \
" "
FILES_sntp = "${sbindir}/sntp \ FILES_sntp = "${sbindir}/sntp \
${sysconfdir}/default/sntp \ ${sysconfdir}/default/sntp \
${systemd_unitdir}/system/sntp.service \ ${systemd_system_unitdir}/sntp.service \
" "
CONFFILES_${PN} = "${sysconfdir}/ntp.conf" CONFFILES_${PN} = "${sysconfdir}/ntp.conf"

View File

@ -25,9 +25,9 @@ do_install() {
install -m 0755 ${WORKDIR}/usb2514 ${D}${bindir}/ install -m 0755 ${WORKDIR}/usb2514 ${D}${bindir}/
install -m 0755 ${WORKDIR}/gpio_usb2514 ${D}${bindir}/ install -m 0755 ${WORKDIR}/gpio_usb2514 ${D}${bindir}/
install -m 0755 ${WORKDIR}/odu-gpiotool ${D}${bindir}/ install -m 0755 ${WORKDIR}/odu-gpiotool ${D}${bindir}/
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/ install -d ${D}${systemd_system_unitdir}/multi-user.target.wants/
install -m 0644 /${WORKDIR}/usb2514.service ${D}${systemd_unitdir}/system/ install -m 0644 /${WORKDIR}/usb2514.service ${D}${systemd_system_unitdir}/
ln -sf ../usb2514.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ ln -sf ../usb2514.service ${D}${systemd_system_unitdir}/multi-user.target.wants/
} }
FILES_${PN} += "${systemd_unitdir}" FILES_${PN} += "${systemd_unitdir}"

View File

@ -20,6 +20,6 @@ do_install() {
# feed. # feed.
FILES_${PN} += "${systemd_unitdir}" FILES_${PN} += "${systemd_unitdir}"
do_install_append() { do_install_append() {
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/ install -d ${D}${systemd_system_unitdir}/multi-user.target.wants/
ln -sf ../openvpn.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ ln -sf ../openvpn.service ${D}${systemd_system_unitdir}/multi-user.target.wants/
} }

View File

@ -40,8 +40,8 @@ do_install_append() {
rm ${D}${sbindir}/in.tftpd rm ${D}${sbindir}/in.tftpd
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/atftpd.service ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/atftpd.service ${D}${systemd_system_unitdir}
} }
PACKAGES =+ "${PN}d" PACKAGES =+ "${PN}d"
@ -51,7 +51,7 @@ FILES_${PN} = "${bindir}/*"
FILES_${PN}d = "${sbindir}/* \ FILES_${PN}d = "${sbindir}/* \
${sysconfdir} \ ${sysconfdir} \
/srv/tftp \ /srv/tftp \
${systemd_unitdir}/system/atftpd.service \ ${systemd_system_unitdir}/atftpd.service \
" "
SYSTEMD_PACKAGES = "${PN}d" SYSTEMD_PACKAGES = "${PN}d"

View File

@ -49,8 +49,8 @@ do_install () {
install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/ install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_system_unitdir}
install -m 0755 ${S}/contrib/wrt/dhcp_release ${D}${bindir} install -m 0755 ${S}/contrib/wrt/dhcp_release ${D}${bindir}

View File

@ -107,9 +107,9 @@ do_install_append() {
install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/
#support for systemd #support for systemd
install -d ${D}${systemd_unitdir}/system/ install -d ${D}${systemd_system_unitdir}/
install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_unitdir}/system/${BPN}.service install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_unitdir}/system/${BPN}.socket install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_system_unitdir}/${BPN}.socket
} }
pkg_postinst_${PN}-conf() { pkg_postinst_${PN}-conf() {
@ -137,7 +137,7 @@ FILES_libgps = "${libdir}/libgps.so.*"
SUMMARY_gpsd-conf = "gpsd configuration files and init scripts" SUMMARY_gpsd-conf = "gpsd configuration files and init scripts"
FILES_gpsd-conf = "${sysconfdir}" FILES_gpsd-conf = "${sysconfdir}"
FILES_gpsd-conf_append_sysmocom-idu = " ${systemd_unitdir}/system/ " FILES_gpsd-conf_append_sysmocom-idu = " ${systemd_system_unitdir}/ "
CONFFILES_gpsd-conf = "${sysconfdir}/default/gpsd.default" CONFFILES_gpsd-conf = "${sysconfdir}/default/gpsd.default"
SUMMARY_gpsd-gpsctl = "Tool for tweaking GPS modes" SUMMARY_gpsd-gpsctl = "Tool for tweaking GPS modes"

View File

@ -27,11 +27,11 @@ do_install() {
install -d ${D}/${sysconfdir}/init.d install -d ${D}/${sysconfdir}/init.d
install -m 0755 ${S}/gpsdate.init ${D}/${sysconfdir}/init.d/gpsdate install -m 0755 ${S}/gpsdate.init ${D}/${sysconfdir}/init.d/gpsdate
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/ install -d ${D}${systemd_system_unitdir}/multi-user.target.wants/
install -m 0644 ${S}/gpsdate.service ${D}${systemd_unitdir}/system install -m 0644 ${S}/gpsdate.service ${D}${systemd_system_unitdir}
ln -sf ../gpsdate.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ ln -sf ../gpsdate.service ${D}${systemd_system_unitdir}/multi-user.target.wants/
install -d ${D}/${sysconfdir}/default install -d ${D}/${sysconfdir}/default
install -m 0644 ${WORKDIR}/gpsdate.default ${D}/${sysconfdir}/default/gpsdate install -m 0644 ${WORKDIR}/gpsdate.default ${D}/${sysconfdir}/default/gpsdate

View File

@ -26,8 +26,8 @@ do_install() {
oe_runmake install DESTDIR=${D} oe_runmake install DESTDIR=${D}
install -d ${D}/usr/share/n2n install -d ${D}/usr/share/n2n
install -m 0755 ${WORKDIR}/edge.sh ${D}/usr/share/n2n install -m 0755 ${WORKDIR}/edge.sh ${D}/usr/share/n2n
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/n2n-edge@.service ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/n2n-edge@.service ${D}${systemd_system_unitdir}
} }
FILES_${PN} += "${systemd_unitdir}" FILES_${PN} += "${systemd_unitdir}"

View File

@ -33,10 +33,10 @@ do_install_append() {
install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d
# systemd files # systemd files
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -d ${D}${systemd_unitdir}/system-generators install -d ${D}${systemd_unitdir}/system-generators
install -m 0644 ${WORKDIR}/openvpn.service ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/openvpn.service ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/openvpn@.service ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/openvpn@.service ${D}${systemd_system_unitdir}
install -m 0755 ${WORKDIR}/openvpn-generator ${D}${systemd_unitdir}/system-generators install -m 0755 ${WORKDIR}/openvpn-generator ${D}${systemd_unitdir}/system-generators
} }

View File

@ -52,9 +52,9 @@ do_install_append () {
install -m 0644 ${S}/data/de.pengutronix.rauc.conf ${D}${sysconfdir}/dbus-1/system.d/ install -m 0644 ${S}/data/de.pengutronix.rauc.conf ${D}${sysconfdir}/dbus-1/system.d/
# Systemd service # Systemd service
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/rauc-done.service ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/rauc-done.service ${D}${systemd_system_unitdir}/
sed -i -e 's!@BINDIR@!${bindir}!g' ${D}${systemd_unitdir}/system/*.service sed -i -e 's!@BINDIR@!${bindir}!g' ${D}${systemd_system_unitdir}/*.service
# udev rules # udev rules
install -d ${D}${base_libdir}/udev/rules.d install -d ${D}${base_libdir}/udev/rules.d

View File

@ -10,12 +10,12 @@ SRC_URI += "file://alignment.service"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
do_install_append() { do_install_append() {
install -d ${D}${systemd_unitdir}/system/basic.target.wants install -d ${D}${systemd_system_unitdir}/basic.target.wants
install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ install -d ${D}${systemd_system_unitdir}/sysinit.target.wants/
install -m 0644 ${WORKDIR}/alignment.service ${D}${systemd_unitdir}/system install -m 0644 ${WORKDIR}/alignment.service ${D}${systemd_system_unitdir}
ln -sf ../alignment.service ${D}${systemd_unitdir}/system/basic.target.wants/ ln -sf ../alignment.service ${D}${systemd_system_unitdir}/basic.target.wants/
ln -sf ../alignment.service ${D}${systemd_unitdir}/system/sysinit.target.wants/ ln -sf ../alignment.service ${D}${systemd_system_unitdir}/sysinit.target.wants/
} }
FILES_${PN} = "${systemd_unitdir}/system ${bindir}" FILES_${PN} = "${systemd_system_unitdir} ${bindir}"

View File

@ -29,15 +29,15 @@ SYSTEMD_SERVICE_${PN} = "lc15-sysdev-remap.service mnt-rom-factory.automount mnt
do_install() { do_install() {
install -d ${D}${bindir} install -d ${D}${bindir}
install -d ${D}/${systemd_unitdir}/system install -d ${D}/${systemd_system_unitdir}
install -m 0755 ${S}/lc15-sysdev-remap ${D}${bindir}/lc15-sysdev-remap install -m 0755 ${S}/lc15-sysdev-remap ${D}${bindir}/lc15-sysdev-remap
install -m 0644 ${S}/lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/lc15-sysdev-remap.service ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/mnt-rom-factory.automount ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/mnt-rom-factory.automount ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/mnt-rom-factory.mount ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/mnt-rom-factory.mount ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/mnt-rom-user.automount ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/mnt-rom-user.automount ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/mnt-rom-user.mount ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/mnt-rom-user.mount ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/mnt-storage.automount ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/mnt-storage.automount ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/mnt-storage.mount ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/mnt-storage.mount ${D}${systemd_system_unitdir}/
} }
FILES_${PN} += "${bindir} \ FILES_${PN} += "${bindir} \

View File

@ -46,7 +46,7 @@ do_compile_append_sysmobts-v2() {
do_install_append() { do_install_append() {
install -d ${D}${sysconfdir}/osmocom install -d ${D}${sysconfdir}/osmocom
install -d ${D}/${systemd_unitdir}/system install -d ${D}/${systemd_system_unitdir}
} }
do_install_append_sysmobts-v2() { do_install_append_sysmobts-v2() {
@ -57,8 +57,8 @@ do_install_append_sysmobts-v2() {
# Install systemd and enable on sysinit # Install systemd and enable on sysinit
install -m 0660 ${S}/doc/examples/sysmo/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom install -m 0660 ${S}/doc/examples/sysmo/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/contrib/osmo-bts-sysmo.service ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/contrib/osmo-bts-sysmo.service ${D}${systemd_system_unitdir}/
} }
do_install_append_sysmobts2100() { do_install_append_sysmobts2100() {
@ -69,9 +69,9 @@ do_install_append_sysmobts2100() {
cp ${D}/${bindir}/lc15bts-mgr ${D}/${bindir}/sysmobts-mgr cp ${D}/${bindir}/lc15bts-mgr ${D}/${bindir}/sysmobts-mgr
# Install systemd and enable on sysinit # Install systemd and enable on sysinit
install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_unitdir}/system/lc15bts-mgr.service install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_system_unitdir}/lc15bts-mgr.service
install -m 0660 ${S}/doc/examples/litecell15/lc15bts-mgr.cfg ${D}${sysconfdir}/osmocom/ install -m 0660 ${S}/doc/examples/litecell15/lc15bts-mgr.cfg ${D}${sysconfdir}/osmocom/
install -m 0644 ${S}/contrib/osmo-bts-lc15.service ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/contrib/osmo-bts-lc15.service ${D}${systemd_system_unitdir}/
} }
SYSTEMD_SERVICE_${PN}_append_sysmobts-v2 = "sysmobts-mgr.service osmo-bts-sysmo.service" SYSTEMD_SERVICE_${PN}_append_sysmobts-v2 = "sysmobts-mgr.service osmo-bts-sysmo.service"

View File

@ -32,6 +32,6 @@ CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
do_install_append() { do_install_append() {
# Install systemd and enable on sysinit # Install systemd and enable on sysinit
install -d ${D}/${systemd_unitdir}/system install -d ${D}/${systemd_system_unitdir}
install -m 0644 ${S}/contrib/osmo-pcu.service ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/contrib/osmo-pcu.service ${D}${systemd_system_unitdir}/
} }