build (762B)
1 #!/usr/bin/env sh 2 3 sed '/<sys\/types\.h>/a #include <sys\/sysmacros.h>' smdev.c > _ 4 mv _ smdev.c 5 sed 's/\/usr\/local/\/usr/' config.mk > _ 6 mv _ config.mk 7 sed -e '/fuse/a \\t{ "hidraw[0-9]", "root", "plugdev", 0660, NULL, NULL },' \ 8 -e '/fuse/a \\t{ "hiddev[0-9]", "root", "plugdev", 0660, NULL, NULL },' \ 9 -e '/fuse/a \\t{ "bus/usb/[0-9]+/[0-9]+", "root", "plugdev", 0660, NULL, "@chgrp plugdev /dev/bus/usb/*/* && chmod 660 /dev/bus/usb/*/*" },' \ 10 -e 's/"tty\[0-9\]", "root", "root", 0600,/"tty\[0-9\]", "root", "tty", 0660,/' \ 11 -e 's|"input/\.\*", "root", "root", 0640, "=input/", NULL|"input/\.\*", "root", "input", 0660, "=input/", "*/usr/bin/libudev-zero-helper"|' \ 12 config.def.h > _ 13 mv _ config.def.h 14 15 make clean 16 make 17 make install