diff options
-rw-r--r-- | rpcbind.morph | 8 | ||||
-rw-r--r-- | rpcbind.service | 12 | ||||
-rw-r--r-- | rpcbind.socket | 8 |
3 files changed, 27 insertions, 1 deletions
diff --git a/rpcbind.morph b/rpcbind.morph index 44dbcae..4d7d672 100644 --- a/rpcbind.morph +++ b/rpcbind.morph @@ -4,7 +4,13 @@ "build-system": "autotools", "configure-commands": [ "NOCONFIGURE=1 ./autogen.sh", - "./configure --prefix=\"$PREFIX\" --enable-libwrap" + "./configure --prefix=\"$PREFIX\" --enable-libwrap --with-rpcuser=nobody" + ], + "install-commands": [ + "make DESTDIR=\"$DESTDIR\" install", + "mkdir -p \"$DESTDIR\"/lib/systemd/system", + "install -m644 rpcbind.service \"$DESTDIR\"/lib/systemd/system", + "install -m644 rpcbind.socket \"$DESTDIR\"/lib/systemd/system" ] } diff --git a/rpcbind.service b/rpcbind.service new file mode 100644 index 0000000..d97a13b --- /dev/null +++ b/rpcbind.service @@ -0,0 +1,12 @@ +[Unit] +Description=RPC bind service +Requires=rpcbind.socket +After=syslog.target network.target + +[Service] +Type=forking +ExecStart=/usr/bin/rpcbind -w + +[Install] +WantedBy=multi-user.target +Also=rpcbind.socket diff --git a/rpcbind.socket b/rpcbind.socket new file mode 100644 index 0000000..d63c1d9 --- /dev/null +++ b/rpcbind.socket @@ -0,0 +1,8 @@ +[Unit] +Description=RPCbind Server Activation Socket + +[Socket] +ListenStream=/var/run/rpcbind.sock + +[Install] +WantedBy=sockets.target |