Skip to content

Commit

Permalink
nvme-cli: remove systemd units
Browse files Browse the repository at this point in the history
  • Loading branch information
ahesford committed Feb 11, 2020
1 parent c514d8b commit 04e2bb6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions srcpkgs/nvme-cli/template
@@ -1,7 +1,7 @@
# Template file for 'nvme-cli'
pkgname=nvme-cli
version=1.9
revision=2
revision=3
build_style=gnu-makefile
# yeah, it must be 0 to enable
make_build_args="LIBUUID=0"
Expand All @@ -18,9 +18,15 @@ checksum=d7c3d56f36f81c0933f7b7c3f90c4196be0fec758affc8062c525b6bc5ea65f5

CFLAGS="-Wno-error -I."

# these files are touch'd by install, remove so they don't get registered
# by the package (which would subsequently cause trouble during removal)
post_install() {
# these files are touch'd by install, remove so they aren't registered
# by the package (which would cause trouble during removal)
rm -f "${PKGDESTDIR}/etc/nvme/hostnqn"
rm -f "${PKGDESTDIR}/etc/nvme/hostid"
# no need for systemd files
systemd="${PKGDESTDIR}/usr/lib/systemd"
rm -f "${systemd}/system/nvmf-connect.target"
rm -f "${systemd}/system/nvmf-connect@.service"
rm -f "${systemd}/system/nvmefc-boot-connections.service"
rmdir "${systemd}/system" "${systemd}"
}

0 comments on commit 04e2bb6

Please sign in to comment.