mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
community/inspircd: fix ownership of files/directories
The makefile sets the owner/group of a lot of files/directories to inspircd. Since the current directory permission handling of apk isn't good this could lead to /usr/bin being writable by inspircd in the worst case (Not tested this theory).
This commit is contained in:
parent
dd2914f2c5
commit
1b0cfb40ad
1 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Sadie Powell <sadie@witchery.services>
|
||||
pkgname=inspircd
|
||||
pkgver=4.7.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="internet relay chat daemon (ircd)"
|
||||
url="https://www.inspircd.org/"
|
||||
pkgusers="inspircd"
|
||||
|
@ -42,12 +42,19 @@ build() {
|
|||
--distribution-label alpine$pkgrel \
|
||||
--gid inspircd \
|
||||
--uid inspircd \
|
||||
--disable-ownership \
|
||||
--system
|
||||
INSPIRCD_DISABLE_RPATH=1 make
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# Instead of relying on the ownership set by the Makefiles use --disable-ownership
|
||||
# and only grant ownership to directories that need it
|
||||
install -dm755 -o inspircd -g inspircd \
|
||||
"$pkgdir"/var/log/inspircd "$pkgdir"/var/lib/inspircd/data \
|
||||
"$pkgdir"/run/inspircd "$pkgdir"/etc/inspircd
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue