~ubuntu-branches/debian/jessie/rinse/jessie

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Thomas Lange
  • Date: 2014-07-04 13:19:08 UTC
  • Revision ID: package-import@ubuntu.com-20140704131908-y3lg8lif933is541
Tags: 3.0
* add subroutine updaterpmdb, which fixes the status of the packages
  inside the target (before, they were not recongnized as installed)
* major changes in output of messages
* include patches from Nathan O'Sullivan <nathan@mammoth.com.au>
* add i586 to list of 32bit architectures
* add config for newer fedora and openSUSE releases, Closes: #684013
* support sub index page links
* increase timeout, Closes: #733728
* new code in sub downloadPackagesToDirectory for determine the download
  link for a certain package
* setup /etc/rpm/platform in CentOS 5 postinst
* fix CentOS 4 URL's, Closes: #702315
* cleanup postinst scripts of openSUSE 11.3 12,3, fedora 19 and 18
* add support for openSUSE 13.1, mostly a copy of 12.3
* convert to a native Debian package
* new rules file, adjust Makefile
* update standards version, no change needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
#  Makefile for rinse, the RPM installation entity
3
 
#
4
 
# Steve
5
 
# --
6
 
#
7
3
 
8
4
 
9
5
#
10
6
#  Only used to build distribution tarballs.
11
7
#
12
8
DIST_PREFIX = ${TMP}
13
 
VERSION     = 2.0.1
14
9
BASE        = rinse
15
 
PREFIX      =
16
 
 
 
10
PREFIX      = ${DESTDIR}
 
11
DIST_PREFIX = ${DESTDIR}
 
12
 
 
13
 
 
14
include VERSION
17
15
 
18
16
#
19
17
#  Report on targets.
28
26
        @echo "  uninstall    - Uninstall from ${PREFIX}"
29
27
        @echo " "
30
28
 
31
 
 
32
 
#
33
 
#  Show what has been changed in the local copy vs. the remote repository.
34
 
#
35
 
diff:
36
 
        hg diff 2>/dev/null
37
 
 
38
 
 
39
 
 
40
29
#
41
30
#  Clean edited files.
42
31
#
60
49
#
61
50
#  Install software
62
51
#
63
 
install: fixupperms install-manpage
 
52
install: fixupperms
64
53
        mkdir -p ${PREFIX}/etc/bash_completion.d
65
54
        mkdir -p ${PREFIX}/etc/rinse
66
55
        mkdir -p ${PREFIX}/usr/sbin
67
56
        mkdir -p ${PREFIX}/usr/lib/rinse
68
57
        mkdir -p ${PREFIX}/usr/lib/rinse/common
69
 
        cp ./scripts.common/* ${PREFIX}/usr/lib/rinse/common
 
58
        cp -p ./scripts.common/* ${PREFIX}/usr/lib/rinse/common
70
59
        chmod 755 ${PREFIX}/usr/lib/rinse/common/*.sh
71
60
        mkdir -p ${PREFIX}/var/cache/rinse
72
 
        cp bin/rinse ${PREFIX}/usr/sbin/
73
 
        chmod 755 ${PREFIX}/usr/sbin/rinse
74
 
        cp etc/*.packages ${PREFIX}/etc/rinse
75
 
        cp etc/*.conf     ${PREFIX}/etc/rinse
76
 
        for i in scripts/*/; do name=`basename $$i`; if [ "$$name" != "CVS" ]; then mkdir -p ${PREFIX}/usr/lib/rinse/$$name  ; cp $$i/*.sh ${PREFIX}/usr/lib/rinse/$$name ; fi ; done
77
 
        cp misc/rinse ${PREFIX}/etc/bash_completion.d
78
 
 
79
 
 
80
 
install-manpage:
 
61
        cp -p bin/rinse ${PREFIX}/usr/sbin/
 
62
        perl -pi -e "s/XXUNRELEASEDXX/$(VERSION)/" $(PREFIX)/usr/sbin/rinse*
 
63
        chmod 755 ${PREFIX}/usr/sbin/rinse*
 
64
        cp -p etc/*.packages ${PREFIX}/etc/rinse
 
65
        cp -p etc/*.conf     ${PREFIX}/etc/rinse
 
66
        for i in scripts/*/; do name=`basename $$i`; mkdir -p ${PREFIX}/usr/lib/rinse/$$name  ; cp $$i/*.sh ${PREFIX}/usr/lib/rinse/$$name ; done
 
67
        cp -p misc/rinse ${PREFIX}/etc/bash_completion.d
81
68
        pod2man --release=${VERSION} --official --section=8 ./bin/rinse ./bin/rinse.8
82
69
        gzip --force -9 bin/rinse.8
83
70
        -mkdir -p ${PREFIX}/usr/share/man/man8/
92
79
        cp -R . $(DIST_PREFIX)/$(BASE)-$(VERSION)
93
80
        perl -pi -e "s/XXUNRELEASEDXX/$(VERSION)/g" $(DIST_PREFIX)/$(BASE)-$(VERSION)/bin/rinse*
94
81
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/debian
95
 
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/.hg*
96
 
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/.release
97
82
        cd $(DIST_PREFIX) && tar -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/
98
83
        gzip $(DIST_PREFIX)/$(BASE)-$(VERSION).tar
99
84
        mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz .
118
103
 
119
104
 
120
105
#
121
 
#  Update the local copy from the remote repository.
122
 
#
123
 
#
124
 
update:
125
 
        hg pull --update
126
 
 
127
 
 
128
 
#
129
106
#  Remove the software.
130
107
#
131
108
uninstall: