diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2009-02-01 13:54:20 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2009-02-01 13:54:20 +0000 |
commit | cdf5d243a0211729193533fd99277d60fd130d6f (patch) | |
tree | e400f9ded8e53e660b865fd12037bdd7354d820b /pkgs/tools/networking/rp-pppoe | |
parent | f47649b3dbd04c6609a060c93129832b7e1df833 (diff) | |
download | nixlib-cdf5d243a0211729193533fd99277d60fd130d6f.tar nixlib-cdf5d243a0211729193533fd99277d60fd130d6f.tar.gz nixlib-cdf5d243a0211729193533fd99277d60fd130d6f.tar.bz2 nixlib-cdf5d243a0211729193533fd99277d60fd130d6f.tar.lz nixlib-cdf5d243a0211729193533fd99277d60fd130d6f.tar.xz nixlib-cdf5d243a0211729193533fd99277d60fd130d6f.tar.zst nixlib-cdf5d243a0211729193533fd99277d60fd130d6f.zip |
Adding ppp and rp-pppoe for different point-to-point connectivity situations. Not tested for trivial reasons, but built OK
svn path=/nixpkgs/trunk/; revision=13925
Diffstat (limited to 'pkgs/tools/networking/rp-pppoe')
-rw-r--r-- | pkgs/tools/networking/rp-pppoe/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/networking/rp-pppoe/default.nix b/pkgs/tools/networking/rp-pppoe/default.nix new file mode 100644 index 000000000000..c0b51992ca8a --- /dev/null +++ b/pkgs/tools/networking/rp-pppoe/default.nix @@ -0,0 +1,42 @@ +a : +let + fetchurl = a.fetchurl; + + version = a.lib.getAttr ["version"] "3.10" a; + buildInputs = with a; [ + ppp + ]; +in +rec { + src = fetchurl { + url = "http://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz"; + sha256 = "1xj9rvsblvv2zi4n1bj8mkk00p1b24ch5hlr1gcc3b4l4m0ag73h"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["exportVars" "doConfigure" "patchInstall" "makeDirs" "doMakeInstall"]; + + goSrcDir = "cd src"; + exportVars = a.noDepEntry('' + export PATH="$PATH:${a.ppp}/sbin" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -L${a.ppp}/lib/${a.ppp.version}" + export PPPD=${a.ppp}/sbin/pppd + ''); + + patchInstall = a.FullDepEntry('' + sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/share/${name}/etc/ppp@' + sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)/share/${name}@' + '') ["minInit" "doUnpack"]; + + makeDirs = a.FullDepEntry('' + ensureDir $out/share/${name}/etc/ppp + '') ["minInit" "defEnsureDir"]; + + name = "rp-pppoe-" + version; + meta = { + description = "Roaring Penguin Point-to-Point over Ethernet tool"; + }; +} |