You are not logged in.

#1 2005-03-11 10:17:50

big_gie
Member
Registered: 2005-01-19
Posts: 637

Keychain package

Hi!

Just began with arch and its great.

I've created a PKGBUILD for keychain because I didn't found one...

Here it is.

pkgname=keychain
pkgver=2.5.3.1
pkgrel=2
pkgdesc="Load ssh keys in memory for passwordless connections"
url="http://www.gentoo.org/proj/en/keychain/index.xml"
license="GPL"
source=(http://dev.gentoo.org/~agriffis/keychain/$pkgname-$pkgver.tar.bz2)
md5sums=(7eb5e5c4b1aa197e60ff9bea2e39b44a)

build() {
  cd $pkgname-$pkgver
  install -D -m0755 keychain $startdir/pkg/usr/bin/keychain
}

EDIT: Corrected the last line, thanx for the correction, still new to this smile

Offline

#2 2005-03-11 19:36:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Keychain package

There is an error in your PKGBUILD. It install the file directly in the system. The last line should be:
install -D -m0755 keychain $startdir/pkg/usr/bin/keychain

Offline

#3 2005-03-12 02:58:25

Mith
Member
From: out there
Registered: 2004-10-05
Posts: 163

Re: Keychain package

mith@middleearth|[~]:~ > pacman -Ss keychain
staging/keychain 2.4.3-s1
    A ssh-keys manager

just to prove that there was a package that I made a while ago.. however it should be updated with yours


ArchLinux (x86_64) w/ kdemod

Offline

#4 2005-03-12 17:49:13

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Keychain package

Mith wrote:
mith@middleearth|[~]:~ > pacman -Ss keychain
staging/keychain 2.4.3-s1
    A ssh-keys manager

just to prove that there was a package that I made a while ago.. however it should be updated with yours

That depends on what package rep you use... current/extra/unstable/testing doesn't have it. Some must have done v2.4.3-s1 but I didn't find it. Anyway, heres an updated one...:)

This way of working is really nice. No needs host the file, the script will download it. I'm loving pacman more and more! Also, pacman download everything before trying to install, so I can connect, download, disconnect and install...

Offline

#5 2005-04-30 00:59:05

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: Keychain package

root@dogma /var/abs/local/keychain # pacman -U keychain-2.5.3.1-1.pkg.tar.gz
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
  keychain: /usr/bin/keychain: exists in filesystem


errors occurred, no packages were upgraded.

Offline

#6 2005-06-26 17:56:58

osigen
Member
From: cynic tub
Registered: 2005-06-18
Posts: 36
Website

Re: Keychain package

This package works fine. (at least in my machine)

pkgname=keychain
pkgver=2.5.3.1
pkgrel=s1
pkgdesc="A ssh-keys manager"
url="http://www.gentoo.org/proj/en/keychain/index.xml"
license="GPL"
depends=('bash')
source=(http://dev.gentoo.org/~agriffis/keychain/$pkgname-$pkgver.tar.bz2)
md5sums=('7eb5e5c4b1aa197e60ff9bea2e39b44a')

build() {
  cd $startdir/src/$pkgname-$pkgver
  mkdir -p $startdir/pkg/usr/bin
  mkdir -p $startdir/pkg/usr/man/man1
  install -m0755 keychain $startdir/pkg/usr/bin/keychain
  install keychain.1 $startdir/pkg/usr/man/man1
} 

"What we cannot speak about we must pass over in silence" L. Wittgenstein

Offline

#7 2005-06-26 18:12:09

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Keychain package

rmbalfa: use the -f switch to force the package to install

osigen: you can use -D switch on install to create those directories as needed with out mkdir -p.
Also,

mkdir -p $startdir/src/$pkgname/pkg/usr/{bin,man/man1}

will create both those directories in one shot.

Offline

Board footer

Powered by FluxBB