You are not logged in.
I've been learning about creating packages "the Arch way", and just made one using a PKGBUILD which seemed to work OK. The .tar.xz contains every file I expected it to, but when installing the package, it doesn't extract the man pages from the archive for some reason!
The PKGBUILD generated the pages through the usual make/make install, and gzipped them. I can manually extract and read them from the .tar.xz, so there's definitely nothing wrong with the files in the package.
I'm probably missing something obvious, but I can't figure it out.
A "pacman -Qk" of the package name shows 3 warnings (the 3 man pages missing), so it is aware they are supposed to be there. Any ideas please?
Last edited by dennis123123 (2014-05-13 20:41:44)
Offline
Post the PKGBUILD.
Moving to Creating and Modifying Packages...
Offline
The man pages are in the generated package, so don't *think* i've done anything wrong here:
pkgname=clamav-light
pkgver=0.98.3
pkgrel=1
pkgdesc="ClamAV without the bloat. Manual scanning only."
arch=('x86' 'x86_64')
url="http://www.clamav.net/"
license=('GPL')
depends=('bzip2' 'gcc-libs' 'libltdl')
makedepends=('intltool' 'autoconf')
conflicts=(clamav)
options=(strip !docs !libtool !staticlibs emptydirs)
source=(http://downloads.sourceforge.net/clamav/clamav-${pkgver}.tar.gz)
md5sums=('b649d35ee85d4d6075a98173dd255c17')
prepare() {
cd "$srcdir/clamav-$pkgver"
sed -i '/clamsubmit/s/^/#/ ; /^pkgconfig/s/^/#/ ; /^bin_SCRIPTS/s/^/#/ ; s/^SUBDIRS.*/SUBDIRS = libclamav clamscan freshclam docs/' ./Makefile.am
sed -i 's/^man_MANS.*/man_MANS = man\/clamscan.1 man\/freshclam.1 man\/freshclam.conf.5/' ./docs/Makefile.am
autoreconf -fi
}
build() {
cd "$srcdir/clamav-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc --with-dbdir=/var/lib/clamav --disable-clamav --enable-dns-fix --with-gnu-ld --without-included-ltdl --disable-milter --disable-ipv6 --disable-clamdtop --disable-fanotify --disable-unrar --enable-llvm=no
make
}
package() {
cd "$srcdir/clamav-$pkgver"
mkdir -p -m755 "$pkgdir/etc"
mkdir -p -m777 "$pkgdir/var/lib/clamav"
make DESTDIR="$pkgdir" install-strip
echo -n '### ClamAV Config ###
DatabaseDirectory /var/lib/clamav
DatabaseMirror database.clamav.net
Foreground yes
TestDatabases yes
' >"$pkgdir/etc/freshclam.conf"
}$ pacman -Qk clamav-light
warning: clamav-light: /usr/share/man/man1/clamscan.1.gz (No such file or directory)
warning: clamav-light: /usr/share/man/man1/freshclam.1.gz (No such file or directory)
warning: clamav-light: /usr/share/man/man5/freshclam.conf.5.gz (No such file or directory)
clamav-light: 22 total files, 3 missing filesLast edited by dennis123123 (2014-05-13 20:01:58)
Offline
Found it! I'd left a "NoExtract" in my pacman.conf from messing around the other day... doh!
Looking in the wrong place ![]()
Offline