Rev 223 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 223 | Rev 224 | ||
---|---|---|---|
Line 148... | Line 148... | ||
148 | then |
148 | then |
149 | insinto "/etc/prey" |
149 | insinto "/etc/prey" |
150 | newins "$mod/config" "mod-$mod.conf" |
150 | newins "$mod/config" "mod-$mod.conf" |
151 | use userpriv && { fowners root:${PN} "/etc/${PN}/mod-$mod.conf" ; } |
151 | use userpriv && { fowners root:${PN} "/etc/${PN}/mod-$mod.conf" ; } |
152 | fperms 660 "/etc/${PN}/mod-$mod.conf" |
152 | fperms 660 "/etc/${PN}/mod-$mod.conf" |
- | 153 | rm "${S}"/modules/$mod/config |
|
153 | # Rest of the module in its expected location |
154 | # Rest of the module in its expected location |
154 | insinto /usr/share/prey/modules |
155 | insinto /usr/share/prey/modules |
155 | doins -r "$mod" |
156 | doins -r "$mod" |
156 | rm "${S}"/usr/share/prey/modules/$mod/config |
- | |
- | 157 | # Make symlink to /etc/prey module configuration file |
|
157 | dosym /etc/${PN}/mod-$mod.conf /usr/share/${PN}/modules/$mod/config |
158 | dosym /etc/${PN}/mod-$mod.conf /usr/share/${PN}/modules/$mod/config |
158 | if [[ $mod == "lock" ]]; then |
159 | if [[ $mod == "lock" ]]; then |
159 | fperms 555 \ |
160 | fperms 555 \ |
160 | "/usr/share/${PN}/modules/lock/platform/linux/${PN}-lock" |
161 | "/usr/share/${PN}/modules/lock/platform/linux/${PN}-lock" |
161 | fi |
162 | fi |