I am using the example PKGBUILD for python apps, namcap gives that some files are in non-standard dirs, does that matter for python apps. and how do i fix it
nathan owe. wrote:
I am using the example PKGBUILD for python apps, namcap gives that some files are in non-standard dirs, does that matter for python apps. and how do i fix it it would be usefully if had posted the output of namcap and also the PKGBUILD
-- Ionut
Biru Ionut wrote:
nathan owe. wrote:
I am using the example PKGBUILD for python apps, namcap gives that some files are in non-standard dirs, does that matter for python apps. and how do i fix it it would be usefully if had posted the output of namcap and also the PKGBUILD
# Contributor: Your Name <youremail@domain.com> pkgname=eddie-tool pkgver=0.37.3.1 pkgrel=1 pkgdesc="a system and network monitoring, security, and performance analysis agent developed entirely in threaded Python" arch=(i686 x86_64) url="http://eddie-tool.net/" source=(http://pypi.python.org/packages/source/E/EDDIE-Tool/EDDIE-Tool-$pkgver.tar.g...) license=('GPL') md5sums=('2144e3e907f7409543972ce0b542da55') depends=('python') options=(!emptydirs) build() { cd $srcdir/EDDIE-Tool-$pkgver python setup.py install --root=$pkgdir/ } [ndowens@Arch eddie-tool]$ namcap EDDIE-Tool-0.37.3.1-1-i686.pkg.tar.gz EDDIE-Tool W: File (usr/config-sample) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc/manual.html) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/eddie.cf) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/cache.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/host.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/rrd.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/common.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/win32_sample.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/message.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_solaris.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/dns.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_linux.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/news.rules) exists in a non-standard directory.
nathan owe. wrote:
Biru Ionut wrote:
nathan owe. wrote:
I am using the example PKGBUILD for python apps, namcap gives that some files are in non-standard dirs, does that matter for python apps. and how do i fix it it would be usefully if had posted the output of namcap and also the PKGBUILD
[ndowens@Arch eddie-tool]$ namcap EDDIE-Tool-0.37.3.1-1-i686.pkg.tar.gz EDDIE-Tool W: File (usr/config-sample) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc/manual.html) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/eddie.cf) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/cache.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/host.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/rrd.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/common.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/win32_sample.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/message.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_solaris.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/dns.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_linux.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/news.rules) exists in a non-standard directory.
the right place where you should put them is in /usr/share/eddie-tool/ -- Ionut
Biru Ionut wrote:
nathan owe. wrote:
Biru Ionut wrote:
nathan owe. wrote:
I am using the example PKGBUILD for python apps, namcap gives that some files are in non-standard dirs, does that matter for python apps. and how do i fix it it would be usefully if had posted the output of namcap and also the PKGBUILD
[ndowens@Arch eddie-tool]$ namcap EDDIE-Tool-0.37.3.1-1-i686.pkg.tar.gz EDDIE-Tool W: File (usr/config-sample) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc/manual.html) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/eddie.cf) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/cache.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/host.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/rrd.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/common.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/win32_sample.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/message.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_solaris.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/dns.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_linux.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/news.rules) exists in a non-standard directory.
the right place where you should put them is in /usr/share/eddie-tool/
how do i tell it to put it in the /usr/share/eddie-tool dir?
On 06/17/2009 04:57 PM, nathan owe. wrote:
Biru Ionut wrote:
nathan owe. wrote:
Biru Ionut wrote:
I am using the example PKGBUILD for python apps, namcap gives that some files are in non-standard dirs, does that matter for python apps. and how do i fix it it would be usefully if had posted the output of namcap and also
nathan owe. wrote: the PKGBUILD
[ndowens@Arch eddie-tool]$ namcap EDDIE-Tool-0.37.3.1-1-i686.pkg.tar.gz EDDIE-Tool W: File (usr/config-sample) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc) exists in a non-standard directory. EDDIE-Tool W: File (usr/doc/manual.html) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/eddie.cf) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/cache.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/host.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/rrd.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/common.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/win32_sample.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/message.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_solaris.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/dns.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/sys_linux.rules) exists in a non-standard directory. EDDIE-Tool W: File (usr/config-sample/rules/news.rules) exists in a non-standard directory.
the right place where you should put them is in /usr/share/eddie-tool/
how do i tell it to put it in the /usr/share/eddie-tool dir?
python setup.py install --prefix=/usr --install-data=/usr/share/$pkgname --root="$pkgdir" || return 1 .. but then the doc dir is non-standard. It might not be possible to put everything in the right place automatically with setuptools.
When you find that a particular build does not have a utility option to install components to a particular location, and you need to do it that way, then you manually move them around, for eg.: install -Dm644 "$srcdir/$pkgname-$pkgver/docs/all"/* "$pkgdir/usr/share/docs/"
participants (4)
-
Biru Ionut
-
nathan owe.
-
Ray Rashif
-
Tim Yang