Lines 193-203
src_install() {
Link Here
|
193 |
|
193 |
|
194 |
einfo "Setting up permissions on files and directories" |
194 |
einfo "Setting up permissions on files and directories" |
195 |
fperms 0700 /var/lib/nut |
195 |
fperms 0700 /var/lib/nut |
196 |
fowners nut:nut /var/lib/nut |
196 |
efowners nut nut /var/lib/nut |
197 |
|
197 |
|
198 |
# Do not remove eval here, because the variables contain shell expansions. |
198 |
# Do not remove eval here, because the variables contain shell expansions. |
199 |
eval fperms 0640 ${NUT_PRIVATE_FILES} |
199 |
eval fperms 0640 ${NUT_PRIVATE_FILES} |
200 |
eval fowners root:nut ${NUT_PRIVATE_FILES} |
200 |
eval efowners root nut ${NUT_PRIVATE_FILES} |
201 |
|
201 |
|
202 |
# Do not remove eval here, because the variables contain shell expansions. |
202 |
# Do not remove eval here, because the variables contain shell expansions. |
203 |
eval fperms 0644 ${NUT_PUBLIC_FILES} |
203 |
eval fperms 0644 ${NUT_PUBLIC_FILES} |
Lines 214-220
src_install() {
Link Here
|
214 |
einfo "Installing non-udev hotplug support" |
214 |
einfo "Installing non-udev hotplug support" |
215 |
insinto /etc/hotplug/usb |
215 |
insinto /etc/hotplug/usb |
216 |
insopts -m 755 |
216 |
insopts -m 755 |
217 |
doins scripts/hotplug/nut-usbups.hotplug |
217 |
#doins scripts/hotplug/nut-usbups.hotplug |
218 |
fi |
218 |
fi |
219 |
|
219 |
|
220 |
dobashcomp "${S}"/scripts/misc/nut.bash_completion |
220 |
dobashcomp "${S}"/scripts/misc/nut.bash_completion |
Lines 224-234
pkg_postinst() {
Link Here
|
224 |
# this is to ensure that everybody that installed old versions still has |
224 |
# this is to ensure that everybody that installed old versions still has |
225 |
# correct permissions |
225 |
# correct permissions |
226 |
|
226 |
|
227 |
chown nut:nut "${ROOT}"/var/lib/nut 2>/dev/null |
227 |
echown nut nut "${ROOT}"/var/lib/nut 2>/dev/null |
228 |
chmod 0700 "${ROOT}"/var/lib/nut 2>/dev/null |
228 |
chmod 0700 "${ROOT}"/var/lib/nut 2>/dev/null |
229 |
|
229 |
|
230 |
# Do not remove eval here, because the variables contain shell expansions. |
230 |
# Do not remove eval here, because the variables contain shell expansions. |
231 |
eval chown root:nut "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null |
231 |
eval echown root nut "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null |
232 |
eval chmod 0640 "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null |
232 |
eval chmod 0640 "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null |
233 |
|
233 |
|
234 |
# Do not remove eval here, because the variables contain shell expansions. |
234 |
# Do not remove eval here, because the variables contain shell expansions. |