]>
Commit | Line | Data |
---|---|---|
90d372c4 | 1 | ############################################################################### |
90d372c4 | 2 | # # |
70df8302 | 3 | # IPFire.org - A linux based firewall # |
648ffde1 | 4 | # Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> # |
70df8302 MT |
5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
90d372c4 | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
90d372c4 MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
90d372c4 MT |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
90d372c4 MT |
18 | # # |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
648ffde1 | 27 | VER = 3.2.12 |
2db1a399 | 28 | RULES_VER = 20171102 |
90d372c4 | 29 | |
2db1a399 MT |
30 | THISAPP = eudev-$(VER) |
31 | DL_FILE = $(THISAPP).tar.gz | |
90d372c4 | 32 | DL_FROM = $(URL_IPFIRE) |
2db1a399 | 33 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
b7d60471 | 34 | TARGET = $(DIR_INFO)/$(THISAPP) |
90d372c4 MT |
35 | |
36 | ############################################################################### | |
37 | # Top-level Rules | |
38 | ############################################################################### | |
39 | ||
2db1a399 | 40 | objects = $(DL_FILE) udev-lfs-$(RULES_VER).tar.bz2 |
90d372c4 MT |
41 | |
42 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
2db1a399 | 43 | udev-lfs-$(RULES_VER).tar.bz2 = $(DL_FROM)/udev-lfs-$(RULES_VER).tar.bz2 |
90d372c4 | 44 | |
648ffde1 | 45 | $(DL_FILE)_BLAKE2 = 1d2dcc158432f722904f645749420cb44ff98f68b8b8fc11917e83750c95280d0dc2c4d9a322909a4acdb9455c6ec373eade77aacb1039096daa8e642076d3d1 |
9a7e4d85 | 46 | udev-lfs-$(RULES_VER).tar.bz2_BLAKE2 = b5fb8177a87719e28adc976b83953024dbcfb8739b0c2e61da186cbc4df5e75e62c888da987d15c64db164002bb0a1e66ce0ff206b143dc953d7571b66d5d5c0 |
90d372c4 MT |
47 | |
48 | install : $(TARGET) | |
49 | ||
50 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
51 | ||
52 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
53 | ||
9a7e4d85 | 54 | b2 : $(subst %,%_BLAKE2,$(objects)) |
90d372c4 MT |
55 | |
56 | ############################################################################### | |
9a7e4d85 | 57 | # Downloading, checking, b2sum |
90d372c4 MT |
58 | ############################################################################### |
59 | ||
60 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
61 | @$(CHECK) | |
62 | ||
63 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
64 | @$(LOAD) | |
65 | ||
9a7e4d85 PM |
66 | $(subst %,%_BLAKE2,$(objects)) : |
67 | @$(B2SUM) | |
90d372c4 MT |
68 | |
69 | ############################################################################### | |
70 | # Installation Details | |
71 | ############################################################################### | |
72 | ||
73 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
74 | @$(PREBUILD) | |
ae0d87a6 | 75 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) |
2db1a399 | 76 | cd $(DIR_APP) && tar axf $(DIR_DL)/udev-lfs-$(RULES_VER).tar.bz2 |
99446eac AB |
77 | cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/eudev-3.2.12_Bump_udev_version_to_251.patch |
78 | cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/eudev-3.2.12_Export_dummies_for_current_tags.patch | |
2db1a399 MT |
79 | cd $(DIR_APP) && ./configure \ |
80 | --prefix=/usr \ | |
81 | --bindir=/bin \ | |
82 | --sbindir=/sbin \ | |
83 | --sysconfdir=/etc \ | |
84 | --libdir=/usr/lib \ | |
85 | --libexecdir=/lib \ | |
86 | --with-rootprefix= \ | |
87 | --with-rootlibdir=/lib \ | |
88 | --enable-manpages \ | |
89 | --disable-static | |
35e18849 | 90 | |
2db1a399 MT |
91 | cd $(DIR_APP) && make $(MAKETUNING) |
92 | cd $(DIR_APP) && make install | |
35e18849 | 93 | |
2db1a399 MT |
94 | # Generate hardware database |
95 | udevadm hwdb --update | |
35e18849 | 96 | |
2db1a399 MT |
97 | # Install rules |
98 | cd $(DIR_APP) && make -f udev-lfs-$(RULES_VER)/Makefile.lfs install | |
ae0d87a6 AF |
99 | |
100 | # Disable net generator rule. This does not work with the setup. | |
101 | rm -f /lib/udev/rules.d/75-persistent-net-generator.rules | |
14744620 | 102 | rm -f /lib/udev/rules.d/80-net-name-slot.rules |
ae0d87a6 | 103 | |
ae0d87a6 | 104 | # Blacklist some modules |
2db1a399 MT |
105 | cp -vf $(DIR_SRC)/config/udev/blacklist.conf \ |
106 | /etc/modprobe.d/blacklist.conf | |
3e78d712 | 107 | |
35e18849 AF |
108 | # Install config file |
109 | install -v -m 644 $(DIR_SRC)/config/udev/udev.conf \ | |
110 | /etc/udev/ | |
111 | ||
8b246743 AF |
112 | # Install alsa rules. |
113 | install -v -m 644 $(DIR_SRC)/config/udev/25-alsa.rules \ | |
114 | /lib/udev/rules.d | |
115 | ||
600b99fb MT |
116 | # Install network rules. |
117 | install -v -m 755 $(DIR_SRC)/config/udev/network-hotplug-rename \ | |
118 | /lib/udev/network-hotplug-rename | |
36f7fe6a MT |
119 | install -v -m 755 $(DIR_SRC)/config/udev/network-hotplug-vlan \ |
120 | /lib/udev/network-hotplug-vlan | |
3fbf7bed JS |
121 | install -v -m 755 $(DIR_SRC)/config/udev/network-hotplug-bridges \ |
122 | /lib/udev/network-hotplug-bridges | |
600b99fb MT |
123 | install -v -m 644 $(DIR_SRC)/config/udev/60-net.rules \ |
124 | /lib/udev/rules.d | |
125 | ||
ec0ba68a MT |
126 | # Install AQM rules |
127 | install -v -m 644 $(DIR_SRC)/config/udev/99-aqm.rules \ | |
3e78d712 | 128 | /lib/udev/rules.d |
ec0ba68a MT |
129 | install -m 755 $(DIR_SRC)/config/udev/network-aqm \ |
130 | /lib/udev/network-aqm | |
2db1a399 | 131 | |
8be8ac63 MT |
132 | # Install offloading rules |
133 | install -v -m 644 $(DIR_SRC)/config/udev/99-offloading.rules \ | |
134 | /lib/udev/rules.d | |
135 | install -m 755 $(DIR_SRC)/config/udev/network-offloading \ | |
136 | /lib/udev/network-offloading | |
137 | ||
90d372c4 MT |
138 | @rm -rf $(DIR_APP) |
139 | @$(POSTBUILD) |