Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-block/raid-check/files: raid-check-20140719-makefile.patch raid-check-20140719-path.patch
Date: Fri, 29 Aug 2014 18:01:20
Message-Id: 20140829180114.E73954302@oystercatcher.gentoo.org
1 chutzpah 14/08/29 18:01:14
2
3 Added: raid-check-20140719-makefile.patch
4 raid-check-20140719-path.patch
5 Log:
6 New package, Script to do "scrubbing" on software RAID systems
7
8 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
9
10 Revision Changes Path
11 1.1 sys-block/raid-check/files/raid-check-20140719-makefile.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/raid-check/files/raid-check-20140719-makefile.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/raid-check/files/raid-check-20140719-makefile.patch?rev=1.1&content-type=text/plain
15
16 Index: raid-check-20140719-makefile.patch
17 ===================================================================
18 diff --git a/Makefile b/Makefile
19 index 0c9ec8a..6bc0bb5 100644
20 --- a/Makefile
21 +++ b/Makefile
22 @@ -1,9 +1,6 @@
23 ### The project name
24 PROJECT=raid-check
25
26 -### Dependencies
27 -DEP_BINS=grep cat sleep awk ps renice ionice logger
28 -
29 ### Destination Paths
30 D_BIN=/usr/local/sbin
31 D_CNF=/etc
32 @@ -15,16 +12,11 @@ F_CONF=raid-check.conf raid-check.cron
33
34 all: install
35
36 -install: test bin config
37 +bin install: $(PROJECT).sh config
38 # install the actual script
39 - install -D --owner root --group root -m 0755 $(PROJECT).sh $(DESTDIR)$(D_BIN)/$(PROJECT)
40 + install -D $(PROJECT).sh $(DESTDIR)$(D_BIN)/$(PROJECT)
41
42 test:
43 - @echo "==> Checking for required external dependencies"
44 - for bindep in $(DEP_BINS) ; do \
45 - which $$bindep > /dev/null || { echo "$$bindep not found"; exit 1;} ; \
46 - done
47 -
48 @echo "==> Checking for valid script syntax"
49 bash -n raid-check.sh
50
51 @@ -32,12 +24,8 @@ bin: $(PROJECT).sh test
52
53 config: $(F_CONF)
54 # Install (without overwriting) configuration files
55 - if [ ! -e $(DESTDIR)$(D_CNF)/raid-check.conf ] ; then \
56 - install -D -m 0644 raid-check.conf $(DESTDIR)$(D_CNF)/raid-check.conf ; \
57 - fi
58 - if [ ! -e $(DESTDIR)$(D_CNF)/cron.d/raid-check ] ; then \
59 - install -D -m 0644 raid-check.cron $(DESTDIR)$(D_CNF)/cron.d/raid-check ; \
60 - fi
61 + install -D raid-check.conf $(DESTDIR)$(D_CNF)/raid-check.conf
62 + install -D raid-check.cron $(DESTDIR)$(D_CNF)/cron.d/raid-check
63
64 uninstall:
65 rm -f $(DESTDIR)$(D_BIN)/$(PROJECT)
66
67
68
69 1.1 sys-block/raid-check/files/raid-check-20140719-path.patch
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/raid-check/files/raid-check-20140719-path.patch?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/raid-check/files/raid-check-20140719-path.patch?rev=1.1&content-type=text/plain
73
74 Index: raid-check-20140719-path.patch
75 ===================================================================
76 diff --git a/raid-check.cron b/raid-check.cron
77 index 92aa48b..d7f23fd 100644
78 --- a/raid-check.cron
79 +++ b/raid-check.cron
80 @@ -1,3 +1,2 @@
81 # Run system wide raid-check once a week on Sunday at 1am by default
82 -0 1 * * Sun root /usr/local/sbin/raid-check
83 -
84 +0 1 * * Sun root /usr/sbin/raid-check