[aur-general] hsftp build error

2009-06-03 Thread Nathan Owe.
well i thought hsftp is working but i get this error :
The following are set in config.h

  pty/tty type:   GLIBC
/bin/sh ./mkinstalldirs /usr/bin
  /bin/install -c -s -m 755 hsftp /usr/bin/hsftp
/bin/install: cannot create regular file `/usr/bin/hsftp': Permission
  denied make: *** [install-binPROGRAMS] Error 1
== ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build hsftp package.


Re: [aur-general] hsftp build error

2009-06-03 Thread Abhishek Dasgupta
2009/6/3 Nathan Owe. ndowen...@gmail.com:
 well i thought hsftp is working but i get this error :
 The following are set in config.h

  pty/tty type:               GLIBC
 /bin/sh ./mkinstalldirs /usr/bin
  /bin/install -c -s -m 755 hsftp /usr/bin/hsftp
 /bin/install: cannot create regular file `/usr/bin/hsftp': Permission
  denied make: *** [install-binPROGRAMS] Error 1
 == ERROR: Build Failed.
    Aborting...
 Error: Makepkg was unable to build hsftp package.


Some notes on the PKGBUILD:
- You needn't put variables which are empty, that'll make
  the PKGBUILD shorter.
- The description should not start with the package name
  as it is redundant information.
- license is an array. (use namcap to check the PKGBUILDs)
- $startdir/src is deprecated, one should use $srcdir now.

The PKGBUILD is trying to install stuff into .usr/bin which
is not allowed as you are running makepkg as a non-root
user. Most probably the Makefile uses some variable other
than DESTDIR to determine the location of installed packages.

-- 
Abhishek


Re: [aur-general] hsftp build error

2009-06-03 Thread Gergely Imreh
2009/6/3 Abhishek Dasgupta abh...@gmail.com:
 2009/6/3 Nathan Owe. ndowen...@gmail.com:
 well i thought hsftp is working but i get this error :
 The following are set in config.h

  pty/tty type:               GLIBC
 /bin/sh ./mkinstalldirs /usr/bin
  /bin/install -c -s -m 755 hsftp /usr/bin/hsftp
 /bin/install: cannot create regular file `/usr/bin/hsftp': Permission
  denied make: *** [install-binPROGRAMS] Error 1
 == ERROR: Build Failed.
    Aborting...
 Error: Makepkg was unable to build hsftp package.


 Some notes on the PKGBUILD:
 - You needn't put variables which are empty, that'll make
  the PKGBUILD shorter.
 - The description should not start with the package name
  as it is redundant information.
 - license is an array. (use namcap to check the PKGBUILDs)
 - $startdir/src is deprecated, one should use $srcdir now.

 The PKGBUILD is trying to install stuff into .usr/bin which
 is not allowed as you are running makepkg as a non-root
 user. Most probably the Makefile uses some variable other
 than DESTDIR to determine the location of installed packages.

 --
 Abhishek



+1 for all of the above, and the particular fix you need is defining
the directories manually. Check the makefile, or as example of another
package that needed this check tcc. Here you go:

# Maintainer: Nathan Owe. ndowen...@yahoo.com
pkgname=hsftp
pkgver=1.15
pkgrel=1
pkgdesc=An ftp emulator that looks as an ftp session, but uses ssh to
transport commands and data.
arch=(i686)
url=http://la-samhna.de/hsftp/;
license=(GPL)
depends=('glibc')
makedepends=('gcc')
source=(http://la-samhna.de/hsftp/${pkgname}-${pkgver}.tar.gz)
md5sums=('933b25a898978650a2a18372b5208a00')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make || return 1
  make bindir=${pkgdir}/usr/bin mandir=${pkgdir}/usr/share/man \
 install || return 1
}