Skip to content

Instantly share code, notes, and snippets.

@bvanheu
Created November 18, 2015 03:34
Show Gist options
  • Save bvanheu/0ed15f04babf9082e6c7 to your computer and use it in GitHub Desktop.
Save bvanheu/0ed15f04babf9082e6c7 to your computer and use it in GitHub Desktop.
netvirt pkgbuild
diff --git a/PKGBUILD b/PKGBUILD
index d5af995..906bcfd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -70,6 +70,8 @@ package() {
#echo 'netvirt-agent \"netvirt-agent\" \"sleep 20 && su - \$USER -c netvirt-agent &\" \"\"' | sudo tee -a /etc/restartd.conf
#" > ${pkgdir}/usr/bin/netvirt-daemonize
+ mkdir -p ${pkgdir}/usr/lib/systemd/system
+
# ArchLinux uses SystemD, Yeah
cat << EOF > ${pkgdir}/usr/lib/systemd/system/netvirt-agent.service
[Unit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment