Contents of /smage/branches/alx-0_6_0/core/alxconfig-ng/alxconfig-ng-0.6.13-r1.smage2
Parent Directory | Revision Log
Revision 8045 -
(show annotations)
(download)
Tue Dec 29 16:32:50 2015 UTC (8 years, 4 months ago) by niro
File size: 2781 byte(s)
Tue Dec 29 16:32:50 2015 UTC (8 years, 4 months ago) by niro
File size: 2781 byte(s)
auto added: ver bump to 0.6.13-r1
1 | # $Id$ |
2 | |
3 | PNAME="alxconfig-ng" |
4 | PVER="0.6.13" |
5 | PBUILD="r1" |
6 | |
7 | SPLIT_PACKAGES="alxconfig-ng-dhcp-tools alxconfig-ng" |
8 | |
9 | PCATEGORIE="app-alx" |
10 | HOMEPAGE="http://www.magellan-linux.net" |
11 | |
12 | ALXCONFIG_DEPEND=">= sys-apps/mage-release-0 |
13 | >= app-text/xmlstarlet-1.1 |
14 | >= dev-db/mysql-5.1 |
15 | >= sys-apps/hwinfo-18" |
16 | |
17 | SDEPEND="${ALXCONFIG_DEPEND}" |
18 | |
19 | SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}" |
21 | |
22 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
23 | sminclude mtools alx |
24 | |
25 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
26 | |
27 | split_info_alxconfig-ng-dhcp-tools() |
28 | { |
29 | DESCRIPTION="alxconfig-ng dhcp configuration fixes." |
30 | PCATEGORIE="app-alx" |
31 | DEPEND=">= sys-apps/mage-release-0" |
32 | |
33 | preinstall() |
34 | { |
35 | add_conf_prot_ignore /etc/alxconfig-ng/config.rc |
36 | } |
37 | } |
38 | |
39 | split_info_alxconfig-ng() |
40 | { |
41 | DESCRIPTION="alxconfig-ng, configures alx clients via mysql." |
42 | PCATEGORIE="app-alx" |
43 | DEPEND="${ALXCONFIG_DEPEND} |
44 | == app-alx/alxconfig-ng-dhcp-tools-${PVER}" |
45 | |
46 | preinstall() |
47 | { |
48 | add_conf_prot_mask /etc/rc.d /etc/alxconfig-ng/skel \ |
49 | /etc/alxconfig-ng/ica-sessions/icons \ |
50 | /etc/conf.d/hwsetup |
51 | |
52 | add_conf_prot_ignore /etc/alxconfig-ng/config.rc |
53 | add_conf_prot_ignore /etc/alxconfig-ng/storefront.rc |
54 | } |
55 | |
56 | postinstall() |
57 | { |
58 | # install user station if needed (uucp is needed to access serial ports [ica-mappings]) |
59 | ${MLIBDIR}/museradd -o "-g users -G audio,video,uucp -d /home/station -s /bin/bash" station |
60 | [ ! -d ${MROOT}/home/station ] && install -o station -g users -d ${MROOT}/home/station |
61 | |
62 | # setup runlevels |
63 | # but never start the services! |
64 | MAGE_BOOTSTRAP=true mstartservice alxsettings |
65 | MAGE_BOOTSTRAP=true mstartservice alxsetstate |
66 | |
67 | # not needed with alxconfig >= 0.6.0 |
68 | local i |
69 | for i in skel/fluxbox/init \ |
70 | skel/fluxbox/apps \ |
71 | skel/fluxbox/keys \ |
72 | skel/idesk \ |
73 | skel/samba \ |
74 | skel/xtdesktop |
75 | do |
76 | if [[ -f ${MROOT}/etc/alxconfig-ng/${i} ]] |
77 | then |
78 | rm ${MROOT}/etc/alxconfig-ng/${i} || die ${i} |
79 | fi |
80 | if [[ -d ${MROOT}/etc/alxconfig-ng/${i} ]] |
81 | then |
82 | rm -r ${MROOT}/etc/alxconfig-ng/${i} || die ${i} |
83 | fi |
84 | done |
85 | |
86 | alx_postinstall |
87 | } |
88 | } |
89 | |
90 | src_prepare() |
91 | { |
92 | munpack ${SRCFILE} || die |
93 | } |
94 | |
95 | src_install_alxconfig-ng-dhcp-tools() |
96 | { |
97 | cd ${SRCDIR} |
98 | |
99 | |
100 | # ALX only: use dhcpcd instead of udhcpc as dhcp-client |
101 | mpatch initscripts-${PVER}-alx-use-dhcpcd-instead-of-udhcpc.patch || die |
102 | |
103 | minstalldir /etc/alxconfig-ng || die |
104 | minstallfile conf/config.rc /etc/alxconfig-ng || die |
105 | |
106 | minstalldir /usr/sbin || die |
107 | minstallexec bin/alx-iface.sh /usr/sbin/alx-iface || die |
108 | minstallexec bin/dhcp-identifier.sh /usr/sbin/dhcp-identifier || die |
109 | } |
110 | |
111 | src_install_alxconfig-ng() |
112 | { |
113 | cd ${SRCDIR} |
114 | make DESTDIR=${BINDIR} install || die |
115 | |
116 | # provided by dhcp-tools |
117 | rm ${BINDIR}/etc/alxconfig-ng/config.rc || die |
118 | rm ${BINDIR}/usr/sbin/alx-iface || die |
119 | rm ${BINDIR}/usr/sbin/dhcp-identifier || die |
120 | } |