You are not logged in.

#1 2004-05-02 08:03:33

vrillusions
Member
Registered: 2004-04-28
Posts: 16
Website

[system: utilities] vlock

Woohoo, my first package I've made for a distro   8)   Anywho, it's the vlock program that you can typically find packages for the "bigger" distros out there.  it's in the ftp as vlock-1.3-1.CORRECTPKG.tar.gz  .the other one I forget to added the setuid because it has to be run as root in order for the part that lets root login when a normal user locks it.  Here's the PKGBUILD:

# Contributor: Todd Eddy <vr (at) vrillusions point com>
pkgname=vlock
pkgver=1.3
pkgrel=2
pkgdesc="Vlock locks virtual consoles, as well as normal TTYs."
url="http://freshmeat.net/projects/vlock/"
depends=('pam')
source=(ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/$pkgname-$pkgver.tar.gz)
md5sums=('d04076f9c5f12aadc4d5fbbabf8a0c12')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make || return 1
  mkdir -p $startdir/pkg/usr/bin
  chmod u+s $pkgname
  cp $pkgname $startdir/pkg/usr/bin
  mkdir -p $startdir/pkg/usr/man/man1
  cp $pkgname.1 $startdir/pkg/usr/man/man1
}

I also "de-spamanized" the email address for here.  Also I just realized I still incremented the pkgrel to pkgrel=2 when I just wanted to keep it at 1.  o well, not a big enough problem for me to upload another file that says "UseThisPkgInsteadOfTheOtherTwo"  so it will just be be release 2 smile

Offline

Board footer

Powered by FluxBB