You are not logged in.
I've just created a PKGBUILD to build package. The namcap output warns of files in a non-standard directory but the locations of files are due to the package design:
$ namcap upnpscan-0.4-1-x86_64.pkg.tar.xz
upnpscan W: File (usr/doc/) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/ChangeLog) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/NEWS) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/AUTHORS) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/INSTALL) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/README) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/COPYING) exists in a non-standard directory.
upnpscan W: File (usr/doc/upnpscan/TODO) exists in a non-standard directory.
upnpscan W: Dependency included and not needed ('sh')
Is it ok to ignore warnings like these ?
Offline
I'd definitely not ignore those. Those files should not be installed under /usr/doc, they should be in /usr/share/doc.
If you want help implementing that change, you'll need to share what you have so far for the PKGBUILD.
Last edited by Trilby (2017-09-26 13:06:37)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
/usr/doc
The central documentation directory. Documentation is actually located in /usr/share/doc and linked from here.
Arch linux tries to stay close to the FHS, but doesn't adhere to it.
/usr/share/doc/{pkg} Application documentation
see https://wiki.archlinux.org/index.php/Ar … irectories
Change the location of the documentation for this package.
Check if you need to copy the file COPYING to the license folder.
Last edited by Lone_Wolf (2017-09-26 13:08:58)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Thanks @Trilby, Here is the PKGBUILD that I have:
pkgname=upnpscan
pkgver=0.4
pkgrel=1
pkgdesc="A tool that scans the LAN or a given address range for UPnP capable devices."
url="http://www.cqure.net/wp/tools/network/upnpscan"
arch=('i686' 'x86_64')
license=('GPL')
depends=('sh')
source=(http://www.cqure.net/tools/${pkgname}-v${pkgver}-src.tgz)
sha256sums=('0d41d63efcc9ed15133306d9996ec72a07ddb047552fca0ac417eeb412db045b')
build() {
cd $srcdir/$pkgname
./autogen.sh
./configure --prefix=/usr
make
}
package() {
cd $srcdir/$pkgname
make DESTDIR="${pkgdir}" install
}
Offline