Magellan Linux

Annotation of /branches/magellan-next/extras/kdebase4-workspace/kdebase4-workspace-4.6.5-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8839 - (hide annotations) (download)
Tue Aug 2 12:22:57 2011 UTC (12 years, 10 months ago) by niro
File size: 3930 byte(s)
-use new system-auth stack
1 niro 8839 # $Id$
2    
3     PNAME="kdebase4-workspace"
4     PVER="4.6.5"
5     PBUILD="r4"
6    
7     DESCRIPTION="The KDE4 workspace."
8    
9     # todo:
10     # - google-gadgets
11     # - dmtx
12     # - libgps
13     # - lm_sensors support
14     DEPEND="== kde-base/kdelibs4-${PVER}
15     == kde-base/kdepimlibs4-${PVER}
16     >= kde-base/qimageblitz-0.0.6
17     >= dev-libs/polkit-qt-0.99
18     >= kde-base/polkit-kde-kcmodules-0.98_pre20101127
19     >= kde-base/polkit-kde-agent-0.99
20     >= dev-libs/glib2-2.28
21     >= dev-libs/libusb-1
22     >= dev-libs/soprano-2.6
23     >= dev-libs/shared-desktop-ontologies-0.7
24     >= media-libs/fontconfig-2.8
25     >= media-libs/freetype-2.4
26     >= net-misc/networkmanager-0.8.5
27     >= sys-apps/consolekit-0.4.5
28     >= sys-libs/libraw1394-2.0
29     >= sys-libs/pam-1.1
30     >= sci-libs/libqalculate-0.9.7
31     >= x11-apps/xprop-1.2
32     >= x11-apps/xrandr-1.3
33     >= x11-apps/xset-1.2
34     >= x11-apps/xsetroot-1.1
35     >= x11-libs/libxkbfile-1.0.7
36     >= x11-libs/libXcomposite-0.4
37     >= x11-libs/libXdamage-1.1
38     >= x11-libs/libXfixes-5
39     >= x11-libs/libXft-2.2
40     >= x11-libs/libXinerama-1.1
41     >= x11-libs/libXScrnSaver-1
42     >= x11-libs/libXrender-0.9
43     >= x11-libs/libXres-1
44     >= x11-libs/libXrandr-1.3
45     >= virtual/opengl"
46    
47     SDEPEND=">= dev-libs/boost-1.47
48     >= x11-proto/compositeproto-1
49     >= x11-proto/damageproto-1
50     >= x11-proto/fixesproto-5
51     >= x11-proto/randrproto-1.3
52     >= x11-proto/renderproto-0.11
53     >= x11-proto/scrnsaverproto-1
54     >= x11-proto/xineramaproto-1"
55    
56     sminclude kde4
57    
58     UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'"
59    
60     # cvs revisions
61     KDE_PAMD=kde.pamd-systemauth
62     KDE_NP_PAMD=kde-np.pamd-systemauth
63    
64     SRC_URI=(
65     ${SRC_URI[*]}
66     mirror://${PNAME}/kde.desktop
67     mirror://${PNAME}/${KDE_PAMD}
68     mirror://${PNAME}/${KDE_NP_PAMD}
69     mirror://${PNAME}/xdg-env.sh
70     mirror://${PNAME}/agent-startup.sh
71     mirror://${PNAME}/agent-shutdown.sh
72     mirror://${PNAME}/kdm.service
73     mirror://${PNAME}/kdm.logrotate
74     )
75    
76     src_compile()
77     {
78     cd ${SRCDIR}
79    
80     # disable old polkitqt support to use the new polkit-qt4/polkit-kde framework
81     # use native networkmanager
82     kde4_configure \
83     $(cmake_with LibXKlavier) \
84     $(cmake_with GLIB2) \
85     $(cmake_with GObject) \
86     $(cmake_with RAW1394) \
87     $(cmake_with OpenGL) \
88     $(cmake_with OpenSSL) \
89     $(cmake_with USB) \
90     $(cmake_with PAM) \
91     $(cmake_with BlueZ) \
92     $(cmake_with CkConnector) \
93     $(cmake_with NetworkManager) \
94     $(cmake_without Sensors) \
95     $(cmake_without Xmms) \
96     $(cmake_without Googlegadgets) \
97     $(cmake_without Dmtx) \
98     $(cmake_without libgps) \
99     || die
100    
101     mmake || die
102     }
103    
104     src_install()
105     {
106     cd ${SRCDIR}
107    
108     # needed directories
109     minstalldir /etc/xdg/kde || die
110     minstalldir ${KDEDIR}/env || die
111     minstalldir /usr/share/xsessions || die
112     minstalldir ${KDEDIR}/share/config/kdm || die
113     minstalldir ${KDEDIR}/shutdown || die
114    
115     # generate a valid kdm configuration
116     export GENKDMCONF_FLAGS="--no-old --no-backup"
117     kde4_src_install || die
118    
119     # install gnome session
120     minstallexec -s kde.desktop /usr/share/xsessions || die
121    
122     # install pam related stuff
123     minstallpam ${KDE_PAMD} kde || die
124     minstallpam ${KDE_NP_PAMD} kde-np || die
125    
126     # fix freedesktop menus structure
127     # move them to /etc/xdg/kde to prevent broken gnome-menus
128     # mv ${BINDIR}/etc/xdg/menus ${BINDIR}/etc/xdg/kde || die
129    
130     # install a environment script to tell kde where the xdgs are now
131     minstallfile -s xdg-env.sh ${KDEDIR}/env || die
132    
133     # install global agent startup and shutdown scripts
134     minstallfile -s agent-startup.sh ${KDEDIR}/env || die
135     minstallfile -s agent-shutdown.sh ${KDEDIR}/shutdown || die
136    
137     # install systemd unit
138     minstallunit kdm.service kdm@.service || die
139    
140     # logrotate
141     minstalllog kdm.logrotate kdm || die
142    
143     # kdm run dir
144     mkeepdir /var/lib/kdm || die
145     mchown root:kdm /var/lib/kdm || die
146     mchmod 1770 /var/lib/kdm || die
147     }
148    
149     preinstall()
150     {
151     # kdm now requires a user
152     ${MLIBDIR}/mgroupadd -o "-g 135" kdm
153     ${MLIBDIR}/museradd -o "-u 135 -g kdm -d /var/lib/kdm -s /bin/false" kdm
154     }
155    
156     postinstall()
157     {
158     mstartunit kdm@.service kdm
159     }
160    
161     postremove()
162     {
163     mstopunit kdm@.service kdm
164     }