blob: 5b09d72676f153140b9cb2716982c9da31e1f01e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Scripts that allow for starting things before your X session"
HOMEPAGE="http://foo.bar.com/"
#SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="x86 amd64"
DEPEND=""
RDEPEND="virtual/x11"
S=${WORKDIR}/${P}
#src_compile() {
#}
src_install() {
cd ${D}
mkdir -p etc/X11/presession.d
mkdir -p etc/X11/postsession.d
cd etc/X11
cat <<EOF >presession.sh
#!/bin/sh
if [ -f \${HOME}/.xpresession ]; then
source \${HOME}/.xpresession
else
for SCRIPT in /etc/X11/presession.d/*
do
if [ -x \${SCRIPT} ]; then
source \${SCRIPT}
fi
done
fi
EOF
cat presession.sh |sed -e "s,presession,postsession,g" >postsession.sh
chmod a+x *.sh
}
|