28 lines
620 B
Plaintext
28 lines
620 B
Plaintext
pkgname=redxen-config-$_svcname
|
|
pkgver="$(date +'%Y.%m.%d')"
|
|
url="https://git.redxen.eu/RedXen/aports"
|
|
arch="noarch"
|
|
license="none"
|
|
pkgdesc="RedXen service config for $_svcname"
|
|
options="!check"
|
|
builddir="$srcdir"
|
|
_cfgpath="${_configpath:-/etc/${_svcname}}"
|
|
|
|
package_copy_configs() {
|
|
for i in ${1:-$source}; do
|
|
package_copy_cfg
|
|
done
|
|
}
|
|
|
|
package_copy_cfg() {
|
|
install -Dm"${COPYCFG_MASK:-${_cfgumask:-644}}" "${COPYCFG_SRC:-$i}" "${COPYCFG_DEST:-${pkgdir}/${_cfgpath}/${COPYCFG_FNAME_DEST:-$i}}"
|
|
}
|
|
|
|
package() {
|
|
package_copy_configs
|
|
}
|
|
|
|
replace_in_file() {
|
|
sed -i -- "s/$1/$(echo "$2" | sed 's/[&/\]/\\&/g')/g" "$3"
|
|
}
|