aboutsummaryrefslogtreecommitdiff
blob: 6f1e9a79b1dcdc0fa7f189d7432fdf3089f06bc6 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $Id$

all:
	@echo nothing to compile

install:
	mkdir -p $(DESTDIR)/etc/conf.d
	mkdir -p $(DESTDIR)/etc/init.d
	install -m 0644 -o root -g root etc/conf.d/vdr* $(DESTDIR)/etc/conf.d
	install -m 0755 -o root -g root etc/init.d/vdr $(DESTDIR)/etc/init.d
	install -m 0755 -o root -g root etc/init.d/wakeup-reboot-halt $(DESTDIR)/etc/init.d

	mkdir -p $(DESTDIR)/usr/sbin
	install -m 0755 -o root -g root usr/sbin/vdr-watchdogd $(DESTDIR)/usr/sbin
	install -m 0755 -o root -g root usr/sbin/acpi-wakeup.sh $(DESTDIR)/usr/sbin

	#mkdir -p $(DESTDIR)/usr/bin
	#install -m 0755 -o root -g root usr/bin/vdr-start $(DESTDIR)/usr/bin

	mkdir -p $(DESTDIR)/usr/lib/vdr/rcscript
	install -m 0644 -o root -g root usr/lib/vdr/rcscript/*.sh $(DESTDIR)/usr/lib/vdr/rcscript/

	mkdir -p $(DESTDIR)/usr/lib/vdr/shutdown
	install -m 0644 -o root -g root usr/lib/vdr/shutdown/{shutdown,pre,periodic}*.sh $(DESTDIR)/usr/lib/vdr/shutdown/
	install -m 0644 -o root -g root usr/lib/vdr/shutdown/wakeup-acpi.sh $(DESTDIR)/usr/lib/vdr/shutdown/

	mkdir -p $(DESTDIR)/usr/lib/vdr/inc
	install -m 0644 -o root -g root usr/lib/vdr/inc/*.sh $(DESTDIR)/usr/lib/vdr/inc/
	
	mkdir -p $(DESTDIR)/usr/lib/vdr/record
	install -m 0644 -o root -g root usr/lib/vdr/record/*.sh $(DESTDIR)/usr/lib/vdr/record/

	mkdir -p $(DESTDIR)/usr/lib/vdr/bin
	install -m 0755 -o root -g root usr/lib/vdr/bin/*.sh $(DESTDIR)/usr/lib/vdr/bin/

	mkdir -p $(DESTDIR)/var/vdr/{video,shutdown-data,merged-config-files}
	chown vdr:vdr -R $(DESTDIR)/var/vdr

	mkdir -p $(DESTDIR)/etc/vdr/commands
	install -m 0644 -o vdr -g vdr etc/vdr/commands/commands.*.conf* $(DESTDIR)/etc/vdr/commands
	mkdir -p $(DESTDIR)/etc/vdr/reccmds
	install -m 0644 -o vdr -g vdr etc/vdr/reccmds/reccmds.*.conf $(DESTDIR)/etc/vdr/reccmds
	chown vdr:vdr -R $(DESTDIR)/etc/vdr

install-nvram:
	install -m 0644 -o root -g root usr/lib/vdr/shutdown/wakeup-nvram.sh $(DESTDIR)/usr/lib/vdr/shutdown/

snapshot:
	svn export . gentoo-vdr-scripts-snapshot
	tar cvfz gentoo-vdr-scripts-snapshot.tgz gentoo-vdr-scripts-snapshot
	scp gentoo-vdr-scripts-snapshot.tgz dev.gentoo.org:public_html/distfiles/gentoo-vdr-scripts-snapshot.tgz
	rm gentoo-vdr-scripts-snapshot.tgz
	rm -rf gentoo-vdr-scripts-snapshot

.PHONY: all install snapshot