ppp: specify statedir for .pid file

This commit is contained in:
Peter Hoeg 2023-05-08 21:44:42 +08:00
parent 897876e4c4
commit ef42b97547

View file

@ -23,14 +23,16 @@ stdenv.mkDerivation rec {
}; };
configureFlags = [ configureFlags = [
"--with-openssl=${openssl.dev}" "--localstatedir=/var"
"--sysconfdir=/etc" "--sysconfdir=/etc"
"--with-openssl=${openssl.dev}"
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
autoreconfHook autoreconfHook
]; ];
buildInputs = [ buildInputs = [
libpcap libpcap
libxcrypt libxcrypt
@ -47,6 +49,8 @@ stdenv.mkDerivation rec {
scripts/{pon,poff,plog} scripts/{pon,poff,plog}
''; '';
enableParallelBuilding = true;
makeFlags = [ makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc" "CC=${stdenv.cc.targetPrefix}cc"
]; ];
@ -57,11 +61,8 @@ stdenv.mkDerivation rec {
"sysconfdir=$(out)/etc" "sysconfdir=$(out)/etc"
]; ];
preInstall = ''
mkdir -p $out/bin
'';
postInstall = '' postInstall = ''
install -D -m 755 scripts/{pon,poff,plog} $out/bin install -Dm755 -t $out/bin scripts/{pon,poff,plog}
''; '';
postFixup = '' postFixup = ''