1 |
# Magellan Package Management |
# Magellan Package Management |
2 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/Makefile,v 1.1 2008-04-14 13:37:52 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/Makefile,v 1.2 2008-04-14 13:55:36 niro Exp $ |
3 |
|
|
4 |
DESTDIR= |
DESTDIR= |
5 |
|
|
13 |
all: install |
all: install |
14 |
|
|
15 |
create-dirs: |
create-dirs: |
16 |
for i in $(DESTDIR)/$(libdir)/skel \ |
install -d -m 0755 $(DESTDIR)/$(alxconfdir)/skel |
17 |
$(DESTDIR)/$(alxconfdir)/ica-sessions/icons \ |
install -d -m 0755 $(DESTDIR)/$(alxconfdir)/skel/fluxbox |
18 |
$(DESTDIR)/$(sysconfdir)/rc.d/init.d \ |
install -d -m 0755 $(DESTDIR)/$(alxconfdir)/skel/net |
19 |
$(DESTDIR)/$(libdir)/functions \ |
install -d -m 0755 $(DESTDIR)/$(alxconfdir)/skel/idesk |
20 |
$(DESTDIR)/$(libdir)/bin \ |
install -d -m 0755 $(DESTDIR)/$(alxconfdir)/skel/samba |
21 |
$(DESTDIR)/$(sbindir) \ |
install -d -m 0755 $(DESTDIR)/$(alxconfdir)/skel/xtdesktop |
22 |
$(DESTDIR)/$(bindir) \ |
install -d -m 0755 $(DESTDIR)/$(alxconfdir)/ica-sessions/icons |
23 |
do \ |
install -d -m 0755 $(DESTDIR)/$(sysconfdir)/rc.d/init.d |
24 |
[ ! -d "${i}" ] && install -d "${i}"; |
install -d -m 0755 $(DESTDIR)/$(libdir)/functions |
25 |
done |
install -d -m 0755 $(DESTDIR)/$(libdir)/bin |
26 |
|
install -d -m 0755 $(DESTDIR)/$(sbindir) |
27 |
|
install -d -m 0755 $(DESTDIR)/$(bindir) |
28 |
|
|
29 |
install-files: |
install-files: |
30 |
install -m 0755 bin/X-no-wm.sh $(DESTDIR)$(sbindir)/X-no-wm |
install -m 0755 bin/X-no-wm.sh $(DESTDIR)$(sbindir)/X-no-wm |
33 |
install -m 0755 bin/set_mouse_speed.sh $(DESTDIR)$(bindir)/set_mouse_speed |
install -m 0755 bin/set_mouse_speed.sh $(DESTDIR)$(bindir)/set_mouse_speed |
34 |
|
|
35 |
# inits |
# inits |
36 |
for i in alxsetstate alxsettings xdm-alx \ |
install -m 0755 init.d/alxsetstate $(DESTDIR)$(sysconfdir)/rc.d/init.d/ |
37 |
do \ |
install -m 0755 init.d/alxsettings $(DESTDIR)$(sysconfdir)/rc.d/init.d/ |
38 |
install -m 0755 init.d/"${i}" $(DESTDIR)$(sysconfdir)/rc.d/init.d/"${i}"; |
install -m 0755 init.d/xdm-alx $(DESTDIR)$(sysconfdir)/rc.d/init.d/ |
|
done |
|
39 |
|
|
40 |
# lib bins |
# lib bins |
41 |
for i in bin/user_shutdown.sh bin/user_reboot.sh \ |
install -m 0755 bin/user_shutdown.sh $(DESTDIR)$(libdir)/bin/ |
42 |
do \ |
install -m 0755 bin/user_reboot.sh $(DESTDIR)$(libdir)/bin/ |
|
install -m 0755 ${i} $(DESTDIR)$(libdir)/bin; |
|
|
done |
|
43 |
|
|
44 |
# functions |
# functions |
45 |
for i in config_network.sh \ |
install -m 0644 functions/config_network.sh $(DESTDIR)$(libdir)/functions/config_network |
46 |
config_printers.sh \ |
install -m 0644 functions/config_printers.sh $(DESTDIR)$(libdir)/functions/config_printers |
47 |
config_sessions.sh \ |
install -m 0644 functions/config_sessions.sh $(DESTDIR)$(libdir)/functions/config_sessions |
48 |
config_x11.sh \ |
install -m 0644 functions/config_x11.sh $(DESTDIR)$(libdir)/functions/config_x11 |
49 |
config_auth.sh \ |
install -m 0644 functions/config_auth.sh $(DESTDIR)$(libdir)/functions/config_auth |
50 |
config_ssh_auth.sh \ |
install -m 0644 functions/config_ssh_auth.sh $(DESTDIR)$(libdir)/functions/config_ssh_auth |
51 |
config_modules.sh \ |
install -m 0644 functions/config_modules.sh $(DESTDIR)$(libdir)/functions/config_modules |
52 |
mysqlfunctions \ |
install -m 0644 functions/mysqlfunctions $(DESTDIR)$(libdir)/functions/mysqlfunctions |
53 |
serial_functions.sh |
install -m 0644 functions/serial_functions.sh $(DESTDIR)$(libdir)/functions/serial_functions |
|
do \ |
|
|
install -m 0644 functions/"${i}" $(DESTDIR)$(libdir)/functions/$(basename "${i}" .sh); |
|
|
done |
|
54 |
|
|
55 |
# configs |
# configs |
56 |
install -m 0644 conf/config.rc $(DESTDIR)$(alxconfdir) |
install -m 0644 conf/config.rc $(DESTDIR)$(alxconfdir) |
57 |
|
|
58 |
# icons |
# icons |
59 |
install -m 0644 icons/default.png $(DESTDIR)$(alxconfdir)/ica-sessions/icons |
install -m 0644 icons/default.png $(DESTDIR)$(alxconfdir)/ica-sessions/icons/ |
60 |
|
install -m 0644 icons/default_item.png $(DESTDIR)$(alxconfdir)/ica-sessions/icons/ |
61 |
|
install -m 0644 icons/sysinfo.png $(DESTDIR)$(alxconfdir)/ica-sessions/icons/ |
62 |
|
|
63 |
# skeletons |
# skeletons |
64 |
for i in fluxbox net idesk samba xtdesktop\ |
install -m 0644 skel/fluxbox/* $(DESTDIR)$(alxconfdir)/skel/fluxbox/ |
65 |
do \ |
install -m 0644 skel/net/* $(DESTDIR)$(alxconfdir)/skel/net/ |
66 |
[ ! -d $(DESTDIR)$(alxconfdir)/skel/"${i}" ] && install -d $(DESTDIR)$(alxconfdir)/skel/"${i}"; |
install -m 0644 skel/idesk/* $(DESTDIR)$(alxconfdir)/skel/idesk/ |
67 |
install -m 0644 skel/"${i}"/* $(DESTDIR)$(alxconfdir)/skel/"${i}"/; |
install -m 0644 skel/samba/* $(DESTDIR)$(alxconfdir)/skel/samba/ |
68 |
done |
install -m 0644 skel/xtdesktop/* $(DESTDIR)$(alxconfdir)/skel/xtdesktop/ |
69 |
|
|
70 |
install: create-dirs \ |
install: create-dirs \ |
71 |
install-files \ |
install-files \ |