forked from gooseproject/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (30 loc) · 1.43 KB
/
makefile
File metadata and controls
34 lines (30 loc) · 1.43 KB
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
all:
@echo all
control/requires.empty: control/specs.empty
for i in combined/*src.rpm
do
rpm -qRp ${i} > requires/${i}.requires
done
touch control/requires.empty
control/specs.empty: combined/*.src.rpm
for i in combined/*.src.rpm
do
mkdir specs/${i}
cd specs/${i}
rpm2cpio ../../${i} | cpio -iumd \*.spec
cd ../..
done
touch control/specs.empty
control/combined.empty: control/sync.empty
cp -lnu -t combined ftp.redhat.com/pub/redhat/linux/enterprise/6Client/en/os/SRPMS/*.src.rpm &>> logs/combined.log
cp -lnu -t combined ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/*.src.rpm &>> logs/combined.log
cp -lnu -t combined ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/*.src.rpm &>> logs/combined.log
cp -lnu -t combined ftp.redhat.com/pub/redhat/linux/enterprise/6ComputeNode//en/os/SRPMS/*.src.rpm &>> logs/combined.log
touch control/combined.empty &>> logs/combined.log
control/sync.empty:
wget -c -nv -m ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Client/en/os/SRPMS/ -a logs/sync.log
wget -c -nv -m ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6ComputeNode/en/os/SRPMS/ -a logs/sync.log
wget -c -nv -m ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/ -a logs/sync.log
wget -c -nv -m ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/ -a logs/sync.log
hardlink -cv ftp.redhat.com &>> logs/sync.log
touch control/sync.empty