Package udev-rule-generator: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | Name: udev-rule-generator Epoch: 2 Version: 1.5 Release: alt1 Summary: Common package for udev rule generator Url: https://packages.altlinux.org/en/Sisyphus/srpms/%name Group: System/Configuration/Hardware License: GPLv2+ PreReq: udev >= 1:238-alt4 BuildArch: noarch Provides: udevd-final Source: %name-%version.tar %description This package contains common files for udev-rule-generator: - udev-final SysV init script - udev-final.service systemd unit - rule_generator.functions %package cdrom Summary: CD rule generator for udev Group: System/Configuration/Hardware License: GPLv2+ BuildArch: noarch PreReq: udev-rules PreReq: %name = %EVR %description cdrom This package contains CD rule generator for udev %package net Summary: Net rule generator for udev Group: System/Configuration/Hardware License: GPLv2+ BuildArch: noarch PreReq: udev-rules PreReq: %name = %EVR %description net This package contains Net rule generator for udev %prep %setup %build %install mkdir -p %buildroot{%_initdir,%_unitdir,{%_sysconfdir,/lib}/udev/rules.d,%_sysconfdir/sysconfig} install -p -m755 udevd-final.init %buildroot%_initdir/udevd-final install -p -m644 udevd-final.service %buildroot%_unitdir/udevd-final.service # Create ghost files #touch %buildroot%_sysconfdir/udev/rules.d/70-persistent-net.rules #touch %buildroot%_sysconfdir/udev/rules.d/70-persistent-cd.rules # udev rule generator install -p -m644 rule_generator.functions %buildroot/lib/udev/ install -p -m755 write_net_rules %buildroot/lib/udev/ install -p -m644 udev-rule-generator.sysconfig %buildroot%_sysconfdir/sysconfig/udev-rule-generator install -p -m644 75-persistent-net-generator.rules %buildroot/lib/udev/rules.d/ install -p -m755 write_cd_rules %buildroot/lib/udev/ install -p -m644 75-cd-aliases-generator.rules %buildroot/lib/udev/rules.d/ #ln -s /dev/null %buildroot%_sysconfdir/udev/rules.d/80-net-setup-link.rules %preun %preun_service udevd-final %post cdrom %post_service udevd-final %post net ln -sf /dev/null %_sysconfdir/udev/rules.d/80-net-setup-link.rules %post_service udevd-final %preun net rm -f %_sysconfdir/udev/rules.d/80-net-setup-link.rules %files /lib/udev/rule_generator.functions %_initdir/udevd-final %_unitdir/udevd-final.service %files cdrom #config(noreplace,missingok) %verify(not md5 size mtime) %ghost %_sysconfdir/udev/rules.d/70-persistent-cd.rules /lib/udev/rules.d/75-cd-aliases-generator.rules /lib/udev/write_cd_rules %files net #config(noreplace,missingok) %verify(not md5 size mtime) %ghost %_sysconfdir/udev/rules.d/70-persistent-net.rules #_sysconfdir/udev/rules.d/80-net-setup-link.rules %config(noreplace) %verify(not md5 size mtime) %_sysconfdir/sysconfig/udev-rule-generator /lib/udev/rules.d/75-persistent-net-generator.rules /lib/udev/write_net_rules %changelog * Wed Aug 23 2023 Sergey Y. Afonin <asy@altlinux.org> 2:1.5-alt1 - used "ether" by default again - workaround for ALT #47262: + ghost rules are not packaged in /etc/udev/rules.d + the stub file /etc/udev/rules.d/80-net-setup-link.rules is created in a post script * Sun Apr 26 2020 Sergey Y. Afonin <asy@altlinux.org> 2:1.4-alt1 - renamed sysconfig/write_net_rules to sysconfig/udev-rule-generator - renaming interfaces if 70-persistent-net.rules recently changed (ALT #32166) - added the ability to update persistent-net.rules (ALT #29282) * Wed Sep 25 2019 Anton Midyukov <antohami@altlinux.org> 2:1.3-alt1 - run udevd-final before raising the network * Thu Aug 29 2019 Sergey Y. Afonin <asy@altlinux.org> 2:1.2-alt1 - returned "eth" by default in write_net_rules (problems with the "ether" name detected in some applications) - added sysconfig/write_net_rules * Tue Aug 20 2019 Sergey Y. Afonin <asy@altlinux.org> 2:1.1-alt1 - changed /var/lock to /run/lock (antohami@altlinux, ALT #35889) - changed "eth" to "ether" in generated rules (ALT #32167) * Fri Apr 06 2018 Alexey Shabalin <shaba@altlinux.ru> 2:1-alt2 - update post and preun scripts * Sat Mar 31 2018 Alexey Shabalin <shaba@altlinux.ru> 2:1-alt1 - Initial build |