You are not logged in.

#1 2005-11-12 17:44:54

@leX
Member
From: Israel
Registered: 2003-11-06
Posts: 76

Keepass. qmake

I'm tray to make package for Keepass/L

pkgname=keepass
pkgver=0.1.2
pkgrel=1
pkgdesc="A password manager or safe which helps you to manage your passwords in a secure way."
url="http://keepass.berlios.de/"
license="GPL"
depends=('qt')
makedepends=('')
conflicts=()
replaces=()
backup=()
install=
source=(http://download.berlios.de/keepass/$pkgname-$pkgver.tar.gz)
md5sums=('6757e737192d12c4947c02ab9489b7b0')

build() {
  cd $startdir/src/$pkgname
  qmake
  make || return 1
  make DESTDIR=$startdir/pkg install
}

But I see following lines in makepkg output:

==> Generating .FILELIST file...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Compressing package...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

And i see epmty /var/abs/local/keepass/pkg folder
It's Makefile:

#############################################################################
# Makefile for building: keepass
# Generated by qmake (1.07a) (Qt 3.3.5) on: Sat Nov 12 18:23:18 2005
# Project:  keepass.pro
# Template: subdirs
# Command: $(QMAKE) -o Makefile keepass.pro
#############################################################################MAKEFILE =    Makefile
QMAKE    =    qmake
DEL_FILE =    rm -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p
INSTALL_FILE=
INSTALL_DIR =
SUBTARGETS =     
        sub-src
first: all
all: Makefile $(SUBTARGETS)
src/$(MAKEFILE):
    @$(CHK_DIR_EXISTS) "src" || $(MKDIR) "src"
    cd src && $(QMAKE) src.pro -o $(MAKEFILE)
sub-src: src/$(MAKEFILE) FORCE
    cd src && $(MAKE) -f $(MAKEFILE)
Makefile: keepass.pro  /opt/qt/mkspecs/linux-g++/qmake.conf
    $(QMAKE) -o Makefile keepass.pro
qmake: qmake_all
    @$(QMAKE) -o Makefile keepass.pro
all: $(SUBTARGETS)
qmake_all: src/$(MAKEFILE)
     ( [ -d src ] && cd src ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE
     ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) $@; ) || true
uninstall_subdirs: qmake_all FORCE
     ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
install_subdirs: qmake_all FORCE
     ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) install; ) || true
distclean: qmake_all FORCE
     ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
install:  install_subdirs
uninstall:  uninstall_subdirs
FORCE:

Offline

#2 2005-11-12 18:09:34

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Keepass. qmake

The make install is failing, because the makefile doesn't use DESTDIR to determine where to put the files, and so it's trying to install directly to your filesystem, which (hopefully) you're building as a user and don't have permission to access.

My make install failed because it couldn't make /usr/local/share/keepass

Offline

#3 2005-11-12 18:14:35

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Keepass. qmake

PKGBUILD:

pkgname=keepass
pkgver=0.1.2
pkgrel=1
pkgdesc="A password manager or safe which helps you to manage your passwords in a secure way."
url="http://keepass.berlios.de/"
license="GPL"
depends=('qt')
makedepends=('')
conflicts=()
replaces=()
backup=()
install=
source=(http://download.berlios.de/keepass/$pkgname-$pkgver.tar.gz)
md5sums=('6757e737192d12c4947c02ab9489b7b0')

build() {
    cd $startdir/src/$pkgname
    qmake
    make || return 1
    make INSTALL_ROOT=$startdir/pkg install || return 1
    mv $startdir/pkg/usr/local/* $startdir/pkg/usr
    rm $startdir/pkg/usr/local -r
}

By the way, thanks for pointing out KeePass was available for Linux... I was using it in windows before I made the switch to Arch and forgot to look-see if it was ported.. I was considering trying to run it in wine this weekend, actually. big_smile

Offline

#4 2005-11-12 18:30:25

@leX
Member
From: Israel
Registered: 2003-11-06
Posts: 76

Re: Keepass. qmake

Thanks.

Offline

#5 2005-11-13 19:44:03

@leX
Member
From: Israel
Registered: 2003-11-06
Posts: 76

Re: Keepass. qmake

See updated pkg for v0.1.3 in AUR keepass 0.1.3

Offline

Board footer

Powered by FluxBB