Fixing hardcoded paths in foo2zjs. Still no firmware
svn path=/nixpkgs/trunk/; revision=26332
This commit is contained in:
parent
f208edd1a5
commit
ba3c547f6d
@ -32,6 +32,8 @@ rec {
|
|||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
''PREFIX=$out''
|
''PREFIX=$out''
|
||||||
|
''APPL=$out/share/applications''
|
||||||
|
''PIXMAPS=$out/share/pixmaps''
|
||||||
''UDEVBIN=$out/bin''
|
''UDEVBIN=$out/bin''
|
||||||
''UDEVDIR=$out/etc/udev/rules.d''
|
''UDEVDIR=$out/etc/udev/rules.d''
|
||||||
''UDEVD=${udev}/sbin/udevd''
|
''UDEVD=${udev}/sbin/udevd''
|
||||||
@ -46,8 +48,12 @@ rec {
|
|||||||
fixHardcodedPaths = a.fullDepEntry ''
|
fixHardcodedPaths = a.fullDepEntry ''
|
||||||
touch all-test
|
touch all-test
|
||||||
sed -e "/BASENAME=/iPATH=$out/bin:$PATH" -i *-wrapper *-wrapper.in
|
sed -e "/BASENAME=/iPATH=$out/bin:$PATH" -i *-wrapper *-wrapper.in
|
||||||
|
sed -e "s@PREFIX=/usr@PREFIX=$out@" -i *-wrapper{,.in}
|
||||||
|
sed -e "s@/usr/share@$out/share@" -i hplj10xx_gui.tcl
|
||||||
|
sed -e "s@\[.*-x.*/usr/bin/logger.*\]@type logger >/dev/null 2>\&1@" -i *wrapper{,.in}
|
||||||
sed -e '/install-usermap/d' -i Makefile
|
sed -e '/install-usermap/d' -i Makefile
|
||||||
sed -e "s@/etc/hotplug/usb@$out&@" -i *rules*
|
sed -e "s@/etc/hotplug/usb@$out&@" -i *rules*
|
||||||
|
sed -e "s@/usr@$out@g" -i hplj1020.desktop
|
||||||
sed -e "/PRINTERID=/s@=.*@=$out/bin/usb_printerid@" -i hplj1000
|
sed -e "/PRINTERID=/s@=.*@=$out/bin/usb_printerid@" -i hplj1000
|
||||||
'' ["doPatch" "minInit"];
|
'' ["doPatch" "minInit"];
|
||||||
|
|
||||||
@ -55,29 +61,22 @@ rec {
|
|||||||
mkdir -pv $out/{etc/udev/rules.d,lib/udev/rules.d,etc/hotplug/usb}
|
mkdir -pv $out/{etc/udev/rules.d,lib/udev/rules.d,etc/hotplug/usb}
|
||||||
mkdir -pv $out/share/foomatic/db/source/{opt,printer,driver}
|
mkdir -pv $out/share/foomatic/db/source/{opt,printer,driver}
|
||||||
mkdir -pv $out/share/cups/model
|
mkdir -pv $out/share/cups/model
|
||||||
|
mkdir -pv $out/share/{applications,pixmaps}
|
||||||
'' ["minInit"];
|
'' ["minInit"];
|
||||||
|
|
||||||
deployGetWeb = a.fullDepEntry ''
|
deployGetWeb = a.fullDepEntry ''
|
||||||
ensureDir "$out/bin"
|
mkdir -pv "$out/bin"
|
||||||
ensureDir "$out/share"
|
cp -v getweb arm2hpdl "$out/bin"
|
||||||
cp ./getweb "$out/bin"
|
'' ["minInit"];
|
||||||
cp ./arm2hpdl "$out/bin"
|
|
||||||
cp -r PPD "$out/share/foo2zjs-ppd"
|
|
||||||
'' ["minInit" "defEnsureDir"];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "ZjStream printer drivers";
|
description = "ZjStream printer drivers";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with a.lib.maintainers;
|
||||||
[
|
[
|
||||||
raskin
|
raskin urkud
|
||||||
];
|
];
|
||||||
platforms = with a.lib.platforms;
|
platforms = with a.lib.platforms;
|
||||||
linux;
|
linux;
|
||||||
license = a.lib.licenses.gpl2Plus;
|
license = a.lib.licenses.gpl2Plus;
|
||||||
};
|
};
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://packages.debian.org/sid/foo2zjs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
}) x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user