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
106
afslogsdir=/var/log/openafs afslocaldir=/var/lib/openafs/local \
106
afslogsdir=/var/log/openafs afslocaldir=/var/lib/openafs/local \
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)
118
118
# Also build a libafs_tree and build the XML documentation.
119
119
override_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 ; \
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 ; \
136
136
[ ! -f debian/changelog.in ] \
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)/ ; \
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 \
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 \
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
219
219
install -d debian/openafs-dbserver/usr/share/man/man8
220
( cd debian && pod2man --section 8 --center "Debian GNU/Linux" \
220
( cd debian && pod2man --section 8 --center "Debian GNU/Linux" \
222
222
>debian/openafs-dbserver/usr/share/man/man8/afs-rootvol.8
223
( cd debian && pod2man --section 8 --center "Debian GNU/Linux" \
223
( cd debian && pod2man --section 8 --center "Debian GNU/Linux" \
225
225
>debian/openafs-dbserver/usr/share/man/man8/afs-newcell.8
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 \
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 ; \
240
set -e; if [ -d "$(DOCS)" ] ; then \
241
for d in arch-overview bos-spec fs-cm-spec rx-spec \
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 ; \
251
251
# Install the upstream NEWS file as the upstream changelog.