~ubuntu-branches/ubuntu/natty/sadms/natty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2010-02-22 20:14:54 UTC
  • Revision ID: james.westby@ubuntu.com-20100222201454-cyc50sofony4htnp
Tags: 2.0.14~CVS20100222-0ubuntu1
* Initial release based on previous Ubuntu package (Thanks Tyler J Gillies)
* New upstream CVS snapshot
* Switch to dpkg format 3.0 (quilt)
* Use the upstream control file with modifications:
  - bump standards version to 3.8.3
  - build depend on python-support, debhelper (>= 7.0.50~) and tofrodos
  - don't depend on bsdutils (essential package)
* debian/rules: use a tiny debhelper 7 makefile
* debian/compat: set to 7
* debian/patches/series: created
* debian/patches/*.patch: follow DEP-3 guidelines
* Update debian/patches/00_Makefile.patch:
  - install in /usr
  - use su-to-root on Debian and gksu on Ubuntu
  - don't use the deprecated Encoding field in desktop files
  - fix scripts links
  - don't install COPYING
  - install the html documentation in /usr/share/doc/sadms/html
* locales:
  - debian/patches/04_locale_dir.patch: set the locale directory to
    /usr/share/locale
  - debian/rules: move the translations to /usr/share/locale, and use
    generic locales (en and fr)
* debian/patches/05_doc_dir.patch: update the location of the html
  documentation index file
* debian/patches/06_bash_not_sh.patch: use bash and not sh in lsb_release.sh
  scripts (it contains bashisms)
* manpages:
  - fix lintian warnings
  - move them to debian/man and update manpages accordingly
* Add debian/README.source to explain how to build a tarball from CVS
* Add a watch file
* Updated debian/copyright format

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
DISTRIBUTIONFAMILY=
11
11
ifeq ($(DISTRIBUTION),Debian)
12
12
        DISTRIBUTIONFAMILY = DEBIAN
13
 
        SU = "gksu"
 
13
        SU = "su-to-root -X -c "
14
14
endif
15
15
ifeq ($(DISTRIBUTION),Ubuntu)
16
16
        DISTRIBUTIONFAMILY = DEBIAN
17
 
        SU = "gksu -u root "
 
17
        SU = "gksudo "
18
18
endif
19
19
ifeq ($(DISTRIBUTION),Redhat)
20
20
        DISTRIBUTIONFAMILY = REDHAT
46
46
dos2unix = perl -pi -e 's/\r\n/\n/g'
47
47
endif
48
48
 
49
 
WHERE = /usr/local
 
49
WHERE = /usr
50
50
WHEREBIN = $(WHERE)/bin
51
 
WHERELIB = $(WHERE)/lib
 
51
WHERELIB = $(WHERE)/share
52
52
BASE = $(DESTDIR)$(prefix)$(WHERE)
53
53
BIN = $(BASE)/bin
54
 
LIB = $(BASE)/lib
 
54
LIB = $(BASE)/share
55
55
FOLDER = $(LIB)/sadms-$(VERSION)
56
56
VARFOLDER = $(DESTDIR)/$(prefix)/var/lib/sadms
57
57
DOCFOLDER = $(DESTDIR)/$(prefix)/usr/share/doc/sadms
78
78
        cp -R bin/* $(FOLDER)
79
79
        
80
80
installshortcuts:
81
 
        ln -s ../lib/sadms-$(VERSION)/sadms.py $(SHORTCUTFOLDER)/sadms
82
 
        ln -s ../lib/sadms-$(VERSION)/globs.py $(SHORTCUTFOLDER)/sadms-globs
83
 
        ln -s ../lib/sadms-$(VERSION)/users.py $(SHORTCUTFOLDER)/sadms-users
84
 
        ln -s ../lib/sadms-$(VERSION)/shares.py $(SHORTCUTFOLDER)/sadms-shares
85
 
        ln -s ../lib/sadms-$(VERSION)/share.py $(SHORTCUTFOLDER)/sadms-share
86
 
        ln -s ../lib/sadms-$(VERSION)/acls.py $(SHORTCUTFOLDER)/fsacls
 
81
        ln -s $(WHERELIB)/sadms-$(VERSION)/sadms.py $(SHORTCUTFOLDER)/sadms
 
82
        ln -s $(WHERELIB)/sadms-$(VERSION)/globs.py $(SHORTCUTFOLDER)/sadms-globs
 
83
        ln -s $(WHERELIB)/sadms-$(VERSION)/users.py $(SHORTCUTFOLDER)/sadms-users
 
84
        ln -s $(WHERELIB)/sadms-$(VERSION)/shares.py $(SHORTCUTFOLDER)/sadms-shares
 
85
        ln -s $(WHERELIB)/sadms-$(VERSION)/share.py $(SHORTCUTFOLDER)/sadms-share
 
86
        ln -s $(WHERELIB)/sadms-$(VERSION)/acls.py $(SHORTCUTFOLDER)/fsacls
87
87
 
88
88
uninstallshortcuts:
89
89
        if [ -L $(SHORTCUTFOLDER)/sadms ];then rm $(SHORTCUTFOLDER)/sadms; fi
95
95
 
96
96
installmenu:
97
97
        echo "[Desktop Entry]" > $(MENUFOLDER)/sadms.desktop
98
 
        echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms.desktop
99
98
        echo "Type=Application" >> $(MENUFOLDER)/sadms.desktop
100
99
        echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms.desktop
101
100
        echo "Exec=$(SU)$(WHEREBIN)/sadms" >> $(MENUFOLDER)/sadms.desktop
110
109
        echo "Comment[en]=Sadms-Active Directory Integration" >> $(MENUFOLDER)/sadms.desktop
111
110
        echo "Comment[fr]=Sadms-Intégration Active Directory" >> $(MENUFOLDER)/sadms.desktop
112
111
        echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-globs.desktop
113
 
        echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-globs.desktop
114
112
        echo "Type=Application" >> $(MENUFOLDER)/sadms-globs.desktop
115
113
        echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-globs.desktop
116
114
        echo "Exec=$(SU)$(WHEREBIN)/sadms-globs" >> $(MENUFOLDER)/sadms-globs.desktop
125
123
        echo "Comment[en]=Sadms-Globals" >> $(MENUFOLDER)/sadms-globs.desktop
126
124
        echo "Comment[fr]=Sadms-Paramètres globaux" >> $(MENUFOLDER)/sadms-globs.desktop
127
125
        echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-shares.desktop
128
 
        echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-shares.desktop
129
126
        echo "Type=Application" >> $(MENUFOLDER)/sadms-shares.desktop
130
127
        echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-shares.desktop
131
128
        echo "Exec=$(SU)$(WHEREBIN)/sadms-shares" >> $(MENUFOLDER)/sadms-shares.desktop
140
137
        echo "Comment[en]=Sadms-Shares" >> $(MENUFOLDER)/sadms-shares.desktop
141
138
        echo "Comment[fr]=Sadms-Partages" >> $(MENUFOLDER)/sadms-shares.desktop
142
139
        echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-share.desktop
143
 
        echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-share.desktop
144
140
        echo "Type=Application" >> $(MENUFOLDER)/sadms-share.desktop
145
141
        echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-share.desktop
146
142
        echo "Exec=$(SU)$(WHEREBIN)/sadms-share" >> $(MENUFOLDER)/sadms-share.desktop
155
151
        echo "Comment[en]=Sadms-Share" >> $(MENUFOLDER)/sadms-share.desktop
156
152
        echo "Comment[fr]=Sadms-Partage" >> $(MENUFOLDER)/sadms-share.desktop
157
153
        echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-users.desktop
158
 
        echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-users.desktop
159
154
        echo "Type=Application" >> $(MENUFOLDER)/sadms-users.desktop
160
155
        echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-users.desktop
161
156
        echo "Exec=$(SU)$(WHEREBIN)/sadms-users" >> $(MENUFOLDER)/sadms-users.desktop
170
165
        echo "Comment[en]=Sadms-Users" >> $(MENUFOLDER)/sadms-users.desktop
171
166
        echo "Comment[fr]=Sadms-Utilisateurs" >> $(MENUFOLDER)/sadms-users.desktop
172
167
        echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-fsacls.desktop
173
 
        echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-fsacls.desktop
174
168
        echo "Type=Application" >> $(MENUFOLDER)/sadms-fsacls.desktop
175
169
        echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-fsacls.desktop
176
170
        echo "Exec=$(SU)$(WHEREBIN)/fsacls" >> $(MENUFOLDER)/sadms-fsacls.desktop
210
204
        if [ ! -d $(LIB) ];then mkdir -p $(LIB); fi
211
205
        if [ ! -d $(FOLDER) ];then mkdir -p $(FOLDER); fi
212
206
        if [ ! -d $(VARFOLDER) ];then mkdir -p $(VARFOLDER); fi
213
 
        if [ ! -d $(DOCFOLDER) ];then mkdir -p $(DOCFOLDER); fi
 
207
        if [ ! -d $(DOCFOLDER)/html ];then mkdir -p $(DOCFOLDER)/html; fi
214
208
        if [ ! -d $(MENUFOLDER) ];then mkdir -p $(MENUFOLDER); fi
215
209
 
216
210
installdoc: 
217
211
        cp AUTHORS $(DOCFOLDER)
218
212
        cp CHANGELOG $(DOCFOLDER)
219
 
        cp COPYING $(DOCFOLDER)
 
213
        #cp COPYING $(DOCFOLDER)
220
214
        cp NEWS $(DOCFOLDER)
221
215
        cp README $(DOCFOLDER)
222
 
        cp -R htmldocs/* $(DOCFOLDER)
 
216
        cp -R htmldocs/* $(DOCFOLDER)/html
223
217
        
224
218
uninstalldoc: 
225
219
        rm -Rf $(DOCFOLDER)