137 |
install -v -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${etcfile} || die |
install -v -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${etcfile} || die |
138 |
} |
} |
139 |
|
|
140 |
minstalludev() |
minstalludevrule() |
141 |
{ |
{ |
142 |
local udevrule |
local udevrule |
143 |
local file |
local file |
162 |
# needed directory |
# needed directory |
163 |
install -d ${BINDIR}/etc/udev/rules.d || die |
install -d ${BINDIR}/etc/udev/rules.d || die |
164 |
|
|
165 |
# install our initscript |
# install our udev rule |
166 |
install -v -m 0755 -o root -g root ${file} ${BINDIR}/etc/udev/rules.d/udevrule || die |
install -v -m 0644 -o root -g root ${file} ${BINDIR}/etc/udev/rules.d/${udevrule} || die |
167 |
|
} |
168 |
|
|
169 |
|
minstalludevhelper() |
170 |
|
{ |
171 |
|
local udevhelper |
172 |
|
local file |
173 |
|
|
174 |
|
[[ -z "$1" ]] && die "No udev helper given" |
175 |
|
|
176 |
|
# if no fullpath given use file from sourcedir |
177 |
|
if [[ -z $(dirname $1) ]] || [[ $(dirname $1) = . ]] |
178 |
|
then |
179 |
|
file="${SOURCEDIR}/${PNAME}/$1" |
180 |
|
else |
181 |
|
file="$1" |
182 |
|
fi |
183 |
|
|
184 |
|
if [[ -n "$2" ]] |
185 |
|
then |
186 |
|
udevhelper="$2" |
187 |
|
else |
188 |
|
udevhelper="$(basename ${file})" |
189 |
|
fi |
190 |
|
|
191 |
|
# needed directory |
192 |
|
install -d ${BINDIR}/lib/udev || die |
193 |
|
|
194 |
|
# install our udev-helper |
195 |
|
install -v -m 0755 -o root -g root ${file} ${BINDIR}/lib/udev/${udevhelper} || die |
196 |
} |
} |
197 |
|
|
198 |
# install man files to appropiate dirs |
# install man files to appropiate dirs |