mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
ppp: specify statedir for .pid file
This commit is contained in:
parent
897876e4c4
commit
ef42b97547
1 changed files with 6 additions and 5 deletions
|
@ -23,14 +23,16 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
configureFlags = [
|
||||
"--with-openssl=${openssl.dev}"
|
||||
"--localstatedir=/var"
|
||||
"--sysconfdir=/etc"
|
||||
"--with-openssl=${openssl.dev}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libpcap
|
||||
libxcrypt
|
||||
|
@ -47,6 +49,8 @@ stdenv.mkDerivation rec {
|
|||
scripts/{pon,poff,plog}
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
@ -57,11 +61,8 @@ stdenv.mkDerivation rec {
|
|||
"sysconfdir=$(out)/etc"
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin
|
||||
'';
|
||||
postInstall = ''
|
||||
install -D -m 755 scripts/{pon,poff,plog} $out/bin
|
||||
install -Dm755 -t $out/bin scripts/{pon,poff,plog}
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
|
|
Loading…
Reference in a new issue