You are not logged in.

#1 2014-05-13 19:51:44

dennis123123
Member
Registered: 2009-07-02
Posts: 72

[SOLVED] PKGBUILD generated package isn't copying the man pages

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

#2 2014-05-13 19:57:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] PKGBUILD generated package isn't copying the man pages

Post the PKGBUILD.

Moving to Creating and Modifying Packages...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-05-13 20:00:01

dennis123123
Member
Registered: 2009-07-02
Posts: 72

Re: [SOLVED] PKGBUILD generated package isn't copying the man pages

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 files

Last edited by dennis123123 (2014-05-13 20:01:58)

Offline

#4 2014-05-13 20:31:45

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] PKGBUILD generated package isn't copying the man pages

Are they in the generated tarball? Are they part of the .MTREE file generated?

Offline

#5 2014-05-13 20:42:34

dennis123123
Member
Registered: 2009-07-02
Posts: 72

Re: [SOLVED] PKGBUILD generated package isn't copying the man pages

Found it! I'd left a "NoExtract" in my pacman.conf from messing around the other day... doh!

Looking in the wrong place big_smile

Offline

Board footer

Powered by FluxBB