mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 07:48:56 -04:00
sstp-server add systemd unit
This commit is contained in:
parent
2d0c1f7c12
commit
6c0c500e3b
16
net-vpn/sstp-server/files/sstp-server@.service
Normal file
16
net-vpn/sstp-server/files/sstp-server@.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=A Secure Socket Tunneling Protocol (SSTP) server.
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=PYTHONOPTIMIZE=1
|
||||
ExecStart=/usr/bin/sstpd -f /etc/sstp-server.ini -s %i
|
||||
|
||||
PrivateTmp=true
|
||||
DevicePolicy=closed
|
||||
DeviceAllow=char-ppp rw
|
||||
ProtectHome=true
|
||||
ProtectSystem=full
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
@ -13,10 +13,18 @@ KEYWORDS="x86 amd64 mips arm"
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
inherit systemd distutils-r1
|
||||
|
||||
DEPEND="net-dialup/ppp"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_install(){
|
||||
distutils-r1_src_install
|
||||
|
||||
insinto /etc/
|
||||
doins sstp-server.ini
|
||||
|
||||
systemd_dounit ${FILESDIR}/sstp-server@.service
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user