Skip to content

Commit

Permalink
alarmcn/collectd: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed May 13, 2024
1 parent ac5cc57 commit 2df7c63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion alarmcn/collectd/PKGBUILD
Expand Up @@ -43,19 +43,24 @@ makedepends=(${optdepends[@]%:*})
depends=('libltdl' 'iptables' 'libnsl')

source=("https://storage.googleapis.com/collectd-tarballs/${pkgname}-${pkgver}.tar.bz2"
https://github.com/collectd/collectd/commit/623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch
'service')
sha256sums=('5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6'
'777544cbf803af4d08ea228b29619f8f6e7a4777a85e0fb30693d8240db7246b'
'83957b0b2cc7fa05a4d5f22e6c913ae2b0a4d7821f7b4e2d2e763054cc8c6c21')

backup=('etc/collectd.conf')

prepare() {
cd ${pkgname}-${pkgver}
sed -i '/sys\/mount.h/d' src/utils/mount/mount.h
patch -Np1 < ../623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch
}

build() {
cd ${pkgname}-${pkgver}
# fix nut plugin build
export CFLAGS="$CFLAGS -Wno-incompatible-pointer-types"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
Expand All @@ -64,7 +69,7 @@ build() {
--disable-werror \
--with-perl-bindings='INSTALLDIRS=vendor' \

make all
make all V=1
}

package() {
Expand Down

0 comments on commit 2df7c63

Please sign in to comment.