3e38a2caf23b53220ecbc06c35d64688e975e21b
[openpandora.oe.git] / recipes / pandora-system / pandora-skel.bb
1 DESCRIPTION = "Default 'new user' files on the OpenPandora."
2
3 COMPATIBLE_MACHINE = "omap3-pandora"
4
5 # /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;)
6 RDEPENDS = "shadow"
7
8 PR = "r31"
9
10 SRC_URI = " \
11   file://.xinitrc \     
12   file://bashrc \
13   file://profile \
14   file://mplayconfig \
15   file://pam_environment \
16   file://xsettings.xml \
17   file://pndXmodmap \
18 #  file://asoundrc \
19   file://vimrc \
20   file://ntpdate.sh \
21 #  file://op_btenabled \
22   file://PandoraQuickStart.pdf \
23   file://PandoraQuickStart.desktop \
24   file://GetPNDManager.desktop \
25   file://gtkrc-2.0 \
26 "
27
28 # xsettings.xml is a hack until I can figure out why XDG configs are not setting the icon theme for Xfce/GTK+
29
30 do_install() {
31   install -d ${D}${sysconfdir}/skel/
32   install -d ${D}${sysconfdir}/skel/Desktop
33   install -d ${D}${sysconfdir}/modutils/
34   install -d ${D}${sysconfdir}/pandora/
35   install -d ${D}${sysconfdir}/NetworkManager/
36   install -d ${D}${sysconfdir}/NetworkManager/dispatcher.d/
37   install -m 0755 ${WORKDIR}/ntpdate.sh  ${D}${sysconfdir}/NetworkManager/dispatcher.d/ntpdate.sh
38   install -m 0644 ${WORKDIR}/.xinitrc ${D}${sysconfdir}/skel/.xinitrc
39   install -m 0644 ${WORKDIR}/vimrc ${D}${sysconfdir}/skel/.vimrc
40   install -m 0644 ${WORKDIR}/bashrc ${D}${sysconfdir}/skel/.bashrc
41   install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/skel/.profile
42   install -m 0644 ${WORKDIR}/pam_environment ${D}${sysconfdir}/skel/.pam_environment
43   install -m 0644 ${WORKDIR}/pndXmodmap ${D}${sysconfdir}/skel/.pndXmodmap
44 #  install -m 0644 ${WORKDIR}/asoundrc ${D}${sysconfdir}/skel/.asoundrc
45   install -m 0644 ${WORKDIR}/gtkrc-2.0 ${D}${sysconfdir}/skel/.gtkrc-2.0
46 #  install -m 0644 ${WORKDIR}/op_btenabled ${D}${sysconfdir}/skel/.op_btenabled
47   install -m 0755 ${WORKDIR}/PandoraQuickStart.desktop ${D}${sysconfdir}/skel/Desktop/PandoraQuickStart.desktop
48   install -m 0755 ${WORKDIR}/GetPNDManager.desktop ${D}${sysconfdir}/skel/Desktop/GetPNDManager.desktop
49   install -m 0755 ${WORKDIR}/PandoraQuickStart.pdf ${D}${sysconfdir}/pandora/PandoraQuickStart.pdf
50
51   # modules to be autoloaded
52   echo fuse > ${WORKDIR}/fuse
53   install -m 0644 ${WORKDIR}/fuse ${D}${sysconfdir}/modutils/fuse
54   echo snd-pcm-oss > ${WORKDIR}/snd-pcm-oss
55   install -m 0644 ${WORKDIR}/snd-pcm-oss ${D}${sysconfdir}/modutils/snd-pcm-oss
56   echo snd-seq > ${WORKDIR}/snd-seq
57   install -m 0644 ${WORKDIR}/snd-seq ${D}${sysconfdir}/modutils/snd-seq
58
59   install -d ${D}${sysconfdir}/skel/Applications/Settings/xfce4/xfconf/xfce-perchannel-xml
60   install -m 0644 ${WORKDIR}/xsettings.xml ${D}${sysconfdir}/skel/Applications/Settings/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
61   
62   install -d ${D}${sysconfdir}/skel/.mplayer/
63   install -m 0644 ${WORKDIR}/mplayconfig ${D}${sysconfdir}/skel/.mplayer/config
64 }
65
66 pkg_postinst () {
67         update-modules
68 }
69
70 pkg_postrm () {
71         update-modules
72 }
73
74 PACKAGE_ARCH = "${MACHINE_ARCH}"
75
76 FILES_${PN} = "/*"