You are not logged in.

#1 2004-07-13 10:51:36

rensel
Member
From: Milan, Italy, Europe, Earth, S
Registered: 2004-06-20
Posts: 93
Website

[x11 : login managers] Entrance CVS

I think this could go into brIce's repository  wink

PKGBUILD

# Contributor: Rensel <rensel@email.it>

pkgname=entrance-cvs
pkgver=200407XX
pkgrel=1
pkgdesc="The Enlightenment Display Manager"
makedepends=()
depends=('xfree86' 'evas-cvs' 'ecore-cvs' 'edje-cvs' 'esmart-cvs' 'edb-cvs' 'pam')
source=(entrance)
md5sums=('462373db8325ad588555710b83505f5d')

build() {
  cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment co e17/apps/entrance
  cd $startdir/src/e17/apps/entrance
  ./autogen.sh --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  rm -r $startdir/pkg/etc/init.d
  mkdir -p $startdir/pkg/etc/rc.d
  cp -p $startdir/entrance $startdir/pkg/etc/rc.d
}

entrance (make it executable)

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID /usr/sbin/entranced`
case "$1" in
  start)
    stat_busy "Starting Entrance"
    [ -z "$PID" ] && /usr/sbin/entranced
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon entrance
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Entrance"
    if [ -n "$PID" ]; then
    kill $PID &> /dev/null
        if [ $? -gt 0 ]; then
           stat_fail
        else
           rm_daemon entrance
           stat_done
        fi
    else
    stat_done
    fi
    ;;
  restart)
    $0 stop
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac
exit 0

Hope this works fine.

[EDIT] Just a little correction in the /etc/rc.d/entrance file


Arch GNU/Linux 0.7 Trusted User
"If I were more modest, I would be perfect"

Offline

#2 2005-01-28 00:26:46

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: [x11 : login managers] Entrance CVS

does it work nicely with UDEV?

Offline

Board footer

Powered by FluxBB