From ab3f9f89ef68519be2f76ccb931970a1cd5fb36e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 20 Aug 2014 12:05:52 +0200 Subject: [PATCH] openssh: added systemd build option. --- srcpkgs/openssh/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template index 249d0f8958d..9b2271ba7e0 100644 --- a/srcpkgs/openssh/template +++ b/srcpkgs/openssh/template @@ -3,7 +3,7 @@ _desc="The OpenSSH implementation of SSH protocol" pkgname=openssh version=6.6p1 -revision=8 +revision=9 build_style=gnu-configure configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh --sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody @@ -22,7 +22,7 @@ distfiles="ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$version. checksum=48c1f0664b4534875038004cc4f3555b8329c2a81c1df48db5c517800de203bb # Package build options -build_options="openssh_identitypersist" +build_options="systemd openssh_identitypersist" desc_option_openssh_identitypersist="add key to ssh-agent(1) upon connecting" pre_configure() { @@ -67,8 +67,10 @@ openssh-server_package() { vmove usr/share/man/man8/${f}.8 done vmove etc/pam.d - vmkdir usr/lib/systemd/system - install -m644 ${FILESDIR}/*.{socket,service} \ - ${PKGDESTDIR}/usr/lib/systemd/system + if [ "$build_option_systemd" ]; then + vmkdir usr/lib/systemd/system + install -m644 ${FILESDIR}/*.{socket,service} \ + ${PKGDESTDIR}/usr/lib/systemd/system + fi } }