-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (37 loc) · 957 Bytes
/
Makefile
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
NAME=centos7-repos
VERSION=1.0.5
ITERATION=1.lru
PREFIX=/etc/yum.repos.d
LICENSE=None
VENDOR="Lucky Rocketship Underpants"
MAINTAINER="Ryan Parman"
DESCRIPTION="Updated version of the repository file."
URL=https://github.com/luckyrocketshipunderpants/centos7-repos
RHEL=$(shell rpm -q --queryformat '%{VERSION}' centos-release)
.PHONY: package
package:
rm -f centos7*
wget -O centos7.repo https://raw.githubusercontent.com/luckyrocketshipunderpants/centos7-repos/master/centos7.repo
fpm \
-f \
-s dir \
-t rpm \
-n $(NAME) \
-v $(VERSION) \
-m $(MAINTAINER) \
--iteration $(ITERATION) \
--license $(LICENSE) \
--vendor $(VENDOR) \
--prefix $(PREFIX) \
--url $(URL) \
--description $(DESCRIPTION) \
--rpm-defattrfile 0755 \
--rpm-digest md5 \
--rpm-compression gzip \
--rpm-os linux \
--rpm-dist el$(RHEL) \
--rpm-auto-add-directories \
--rpm-changelog CHANGELOG.txt \
centos7.repo \
;
mv *.rpm /vagrant/repo/