~ubuntu-branches/ubuntu/raring/openafs/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2013-03-05 01:01:49 UTC
  • mfrom: (44.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130305010149-3ui1dhq9a2fw9abp
Tags: 1.6.2-1+ubuntu2
Explicitly include -pthread in UAFS_XLIBS to fix build failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
        mv doc/man-pages/pod1/up.pod doc/man-pages/pod1/afs-up.pod
104
104
        rm -f doc/man-pages/man1/up.1
105
105
        sh regen.sh
106
 
        afslogsdir=/var/log/openafs afslocaldir=/var/lib/openafs/local \
107
 
            sh configure \
 
106
        afslogsdir=/var/log/openafs afslocaldir=/var/lib/openafs/local     \
 
107
            sh configure                                                   \
108
108
            CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' \
109
 
            --with-afs-sysname=$(SYS_NAME) --disable-kernel-module \
110
 
            --prefix=/usr --mandir=\$${prefix}/share/man \
111
 
            --sysconfdir=/etc --libexecdir=/usr/lib --with-krb5 \
112
 
            --localstatedir=/var/lib --enable-supergroups \
113
 
            --enable-fuse-client --enable-debug --enable-debug-lwp \
114
 
            --with-docbook2pdf=dblatex --with-xslt-processor=xsltproc \
115
 
            --with-html-xsl=$(HTML_XSL) \
 
109
            --with-afs-sysname=$(SYS_NAME) --disable-kernel-module         \
 
110
            --prefix=/usr --mandir=\$${prefix}/share/man                   \
 
111
            --sysconfdir=/etc --libexecdir=/usr/lib --with-krb5            \
 
112
            --localstatedir=/var/lib --enable-supergroups                  \
 
113
            --enable-fuse-client --enable-debug --enable-debug-lwp         \
 
114
            --with-docbook2pdf=dblatex --with-xslt-processor=xsltproc      \
 
115
            --with-html-xsl=$(HTML_XSL)                                    \
116
116
            $(DEBIAN_OPT_FLAGS) $(SYSTEM)
117
117
 
118
118
# Also build a libafs_tree and build the XML documentation.
119
119
override_dh_auto_build:
120
120
        dh_auto_build
121
121
        $(MAKE) libafs_tree
122
 
        set -e; for d in AdminGuide QuickStartUnix UserGuide ; do \
123
 
            $(MAKE) -C doc/xml/$$d all ; \
 
122
        set -e; for d in AdminGuide QuickStartUnix UserGuide ; do       \
 
123
            $(MAKE) -C doc/xml/$$d all ;                                \
124
124
        done
125
125
 
126
126
# The manipulation of debian/changelog here is unnecessary with a regular
130
130
override_dh_auto_clean:
131
131
        [ ! -f doc/man-pages/pod1/afs-up.pod ] \
132
132
            || mv doc/man-pages/pod1/afs-up.pod doc/man-pages/pod1/up.pod
133
 
        set -e; for d in AdminGuide QuickStartUnix UserGuide ; do \
 
133
        set -e; for d in AdminGuide QuickStartUnix UserGuide ; do           \
134
134
            [ ! -f doc/xml/$$d/Makefile ] || $(MAKE) -C doc/xml/$$d clean ; \
135
135
        done
136
136
        [ ! -f debian/changelog.in ] \
157
157
 
158
158
        mkdir -p $(DOCS)/html
159
159
        cp doc/xml/*.gif doc/xml/*.html $(DOCS)/html/
160
 
        set -e; for d in AdminGuide QuickStartUnix UserGuide ; do \
161
 
            mkdir $(DOCS)/html/$$d ; \
162
 
            cp doc/xml/$$d/*.html $(DOCS)/html/$$d/ ; \
163
 
            cp doc/xml/$$d/*.pdf $(DOCS)/ ; \
 
160
        set -e; for d in AdminGuide QuickStartUnix UserGuide ; do       \
 
161
            mkdir $(DOCS)/html/$$d ;                                    \
 
162
            cp doc/xml/$$d/*.html $(DOCS)/html/$$d/ ;                   \
 
163
            cp doc/xml/$$d/*.pdf $(DOCS)/ ;                             \
164
164
        done
165
165
        cp doc/xml/AdminGuide/*.png $(DOCS)/html/AdminGuide/
166
166
        mkdir $(DOCS)/html/arch-overview
167
167
        cp doc/arch/arch-overview.h $(DOCS)/html/arch-overview
168
168
        cd $(DOCS)/html/arch-overview && doxygen -g && doxygen \
169
169
            && rm Doxyfile *.h && mv html/* . && rm -r latex html
170
 
        set -e; for h in doc/protocol/*.h ; do \
171
 
            mkdir $(DOCS)/html/`basename $$h .h` ; \
172
 
            cp $$h $(DOCS)/html/`basename $$h .h` ; \
173
 
            cd $(DOCS)/html/`basename $$h .h` && doxygen -g && doxygen \
174
 
                && rm Doxyfile *.h && mv html/* . && rm -r latex html \
175
 
                && cd $(CURDIR) ; \
 
170
        set -e; for h in doc/protocol/*.h ; do                          \
 
171
            mkdir $(DOCS)/html/`basename $$h .h` ;                      \
 
172
            cp $$h $(DOCS)/html/`basename $$h .h` ;                     \
 
173
            cd $(DOCS)/html/`basename $$h .h` && doxygen -g && doxygen  \
 
174
                && rm Doxyfile *.h && mv html/* . && rm -r latex html   \
 
175
                && cd $(CURDIR) ;                                       \
176
176
        done
177
177
 
178
178
        install -d debian/$(srcpkg)/usr/src/modules/$(package)
179
 
        cd libafs_tree && find . -print | \
180
 
            cpio -admp $(CURDIR)/debian/$(srcpkg)/usr/src/modules/$(package)
 
179
        cd libafs_tree && find . -print \
 
180
            | cpio -admp $(CURDIR)/debian/$(srcpkg)/usr/src/modules/$(package)
181
181
        cp .version debian/$(srcpkg)/usr/src/modules/$(package)/
182
182
        mkdir -p debian/$(srcpkg)/usr/src/modules/$(package)/debian
183
183
        cp debian/copyright debian/module/* \
217
217
            debian/libpam-openafs-kaserver/lib/security/pam_afs.krb.so
218
218
 
219
219
        install -d debian/openafs-dbserver/usr/share/man/man8
220
 
        ( cd debian && pod2man --section 8 --center "Debian GNU/Linux" \
221
 
            afs-rootvol ) \
 
220
        ( cd debian && pod2man --section 8 --center "Debian GNU/Linux"  \
 
221
            afs-rootvol )                                               \
222
222
            >debian/openafs-dbserver/usr/share/man/man8/afs-rootvol.8
223
 
        ( cd debian && pod2man --section 8 --center "Debian GNU/Linux" \
224
 
            afs-newcell ) \
 
223
        ( cd debian && pod2man --section 8 --center "Debian GNU/Linux"  \
 
224
            afs-newcell )                                               \
225
225
            >debian/openafs-dbserver/usr/share/man/man8/afs-newcell.8
226
226
 
227
227
        install -d debian/$(srcpkg)/usr/share/doc/$(srcpkg)
237
237
override_dh_installdocs:
238
238
        dh_installdocs $(DOC_PACKAGES) --link-doc=openafs-client
239
239
        dh_installdocs --remaining-packages
240
 
        set -e; if [ -d "$(DOCS)" ] ; then \
241
 
            for d in arch-overview bos-spec fs-cm-spec rx-spec \
242
 
                     vldb-vol-spec ; do \
243
 
                if [ -f "$(DOCS)/html/$$d/jquery.js" ] ; then \
244
 
                    rm $(DOCS)/html/$$d/jquery.js ; \
245
 
                    ln -s /usr/share/javascript/jquery/jquery.min.js \
246
 
                        $(DOCS)/html/$$d/jquery.js ; \
247
 
                fi ; \
248
 
            done ; \
 
240
        set -e; if [ -d "$(DOCS)" ] ; then                              \
 
241
            for d in arch-overview bos-spec fs-cm-spec rx-spec          \
 
242
                     vldb-vol-spec ; do                                 \
 
243
                if [ -f "$(DOCS)/html/$$d/jquery.js" ] ; then           \
 
244
                    rm $(DOCS)/html/$$d/jquery.js ;                     \
 
245
                    ln -s /usr/share/javascript/jquery/jquery.min.js    \
 
246
                        $(DOCS)/html/$$d/jquery.js ;                    \
 
247
                fi ;                                                    \
 
248
            done ;                                                      \
249
249
        fi
250
250
 
251
251
# Install the upstream NEWS file as the upstream changelog.