aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@vega.ocn.ne.jp>2011-05-04 07:03:29 +0000
committerTatsuya Kinoshita <tats@vega.ocn.ne.jp>2011-05-04 07:03:29 +0000
commit9090972ad669cb40634a2d9e683953a4e20af34d (patch)
tree24c4d8d1765857bbb0b25d3f1123e602c300f04d /debian/rules
parentReleasing debian version 0.1.10+0.1.11pre+kokb23-4 (diff)
downloadw3m-9090972ad669cb40634a2d9e683953a4e20af34d.tar.gz
w3m-9090972ad669cb40634a2d9e683953a4e20af34d.zip
Releasing debian version 0.3-2.4debian/0.3-2.4
Diffstat (limited to '')
-rwxr-xr-xdebian/rules98
-rw-r--r--debian/rules-ssl44
-rw-r--r--debian/rules.mk10
3 files changed, 83 insertions, 69 deletions
diff --git a/debian/rules b/debian/rules
index b06880b..91ee9ce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export DH_COMPAT=3
+
nossl:
@echo already nossl version environments
@@ -23,20 +25,22 @@ ssl:
include debian/rules.mk
build: build-stamp
-build-stamp: setup-ja setup-en
+build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
- cp -p debian/config.h-ja $(buildjadir)/config.h
- cd $(buildjadir) && $(MAKE)
- cp -p debian/config.h-en $(buildendir)/config.h
- cd $(buildendir) && $(MAKE)
+ (echo "# Configuration at "`hostname`; cat debian/config.param) > $(buildjadir)/config.param
+ cd $(buildjadir) && ./configure -yes -model=cookie -lang=JA -cflags="-O2 -DDEBIAN" -code=E --gc-includedir=/usr/include/gc --mimetypes=/etc/mime.types
+ cd $(buildjadir) && LC_ALL=C $(MAKE) OPTS="-Wall -g"
+ (echo "# Configuration at "`hostname`; cat debian/config.param) > $(buildendir)/config.param
+ cd $(buildendir) && ./configure -yes -model=cookie -lang=EN -cflags="-O2 -DDEBIAN" --gc-includedir=/usr/include/gc --mimetypes=/etc/mime.types
+ cd $(buildendir) && LC_ALL=C $(MAKE) OPTS="-Wall -g"
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -rf $(buildtree)
- rm -f extract-stamp patch-stamp build-stamp install-stamp
+ rm -f extract-stamp patch-stamp configure-stamp build-stamp install-stamp
rm -f debian/docs debian/examples
dh_clean
@@ -47,70 +51,72 @@ install-stamp: build-stamp
dh_clean -k
dh_installdirs
- # Add here commands to install the package into debian/tmp.
- cd $(buildendir) && $(MAKE) install DESTDIR=`pwd`/../../debian/tmp
+ # Add here commands to install the package into debian/w3m.
+ cd $(buildendir) && $(MAKE) install DESTDIR=`pwd`/../../debian/w3m
cd $(buildendir)/Bonus && find . -type f -perm 0100 -print | \
while read i; \
do \
sed -e 's:/usr/local/bin/ruby:/usr/bin/ruby:' \
-e 's:/bin/env:/usr/bin/env:' \
$$i \
- > `pwd`/../../../debian/tmp/usr/share/doc/w3m/examples/$$i ; \
- done
- cd `pwd`/debian/tmp/usr/lib/w3m && for i in dirlist.cgi; \
- do \
- perl -i -ple 's:^#!/usr/local/bin/perl:#!/usr/bin/perl:' $$i; \
+ > `pwd`/../../../debian/w3m/usr/share/doc/w3m/examples/$$i ; \
done
- cd `pwd`/debian/tmp && mv usr/bin/w3m usr/bin/w3m-en
- cd `pwd`/debian/tmp && mv usr/lib/w3m/w3mbookmark usr/lib/w3m/w3mbookmark-en
- cd `pwd`/debian/tmp && mv usr/lib/w3m/w3mhelperpanel usr/lib/w3m/w3mhelperpanel-en
- install -m 755 debian/w3m.sh `pwd`/debian/tmp/usr/bin/w3m
- install -m 755 debian/w3mbookmark.sh `pwd`/debian/tmp/usr/lib/w3m/w3mbookmark
- install -m 755 debian/w3mhelperpanel.sh `pwd`/debian/tmp/usr/lib/w3m/w3mhelperpanel
- install -m 755 $(buildjadir)/w3m `pwd`/debian/tmp/usr/bin/w3m-ja
- install -m 755 $(buildjadir)/w3mbookmark `pwd`/debian/tmp/usr/lib/w3m/w3mbookmark-ja
- install -m 755 $(buildjadir)/w3mhelperpanel `pwd`/debian/tmp/usr/lib/w3m/w3mhelperpanel-ja
- # install -m 644 lisp/w3m.el `pwd`/debian/tmp/usr/share/emacs/site-lisp/w3m/
- install -m 644 lisp/w3m.el `pwd`/debian/tmp/usr/share/doc/w3m/examples/
+ cd `pwd`/debian/w3m && mv usr/bin/w3m usr/bin/w3m-en
+ cd `pwd`/debian/w3m && mv usr/lib/w3m/w3mbookmark usr/lib/w3m/w3mbookmark-en
+ cd `pwd`/debian/w3m && mv usr/lib/w3m/w3mhelperpanel usr/lib/w3m/w3mhelperpanel-en
+ install -m 755 debian/w3m.sh `pwd`/debian/w3m/usr/bin/w3m
+ install -m 755 debian/w3mbookmark.sh `pwd`/debian/w3m/usr/lib/w3m/w3mbookmark
+ install -m 755 debian/w3mhelperpanel.sh `pwd`/debian/w3m/usr/lib/w3m/w3mhelperpanel
+ install -m 755 $(buildjadir)/w3m `pwd`/debian/w3m/usr/bin/w3m-ja
+ install -m 755 $(buildjadir)/w3mbookmark `pwd`/debian/w3m/usr/lib/w3m/w3mbookmark-ja
+ install -m 755 $(buildjadir)/w3mhelperpanel `pwd`/debian/w3m/usr/lib/w3m/w3mhelperpanel-ja
+ install -m 644 debian/w3mconfig `pwd`/debian/w3m/etc/w3m/w3mconfig
+ install -m 644 debian/mailcap `pwd`/debian/w3m/etc/w3m/mailcap
+ dh_movefiles --sourcedir=debian/w3m
touch install-stamp
# Build architecture-independent files here.
-binary-indep: build install
+binary-indep: build-stamp install-stamp
# We have nothing to do by default.
# Build architecture-dependent files here.
-binary-arch: build install
+binary-arch: build-stamp install-stamp
# dh_testversion
- dh_testdir
- dh_testroot
+ dh_testdir -a
+ dh_testroot -a
sed -e 's:^:$(builddir)/:' debian/docs.in > debian/docs
- dh_installdocs
- cp -a $(builddir)/doc-jp/* `pwd`/debian/tmp/usr/share/doc/w3m/ja/
+ dh_installdocs -a
+ cp -a $(builddir)/doc-jp/* `pwd`/debian/w3m/usr/share/doc/w3m/ja/
+ rm -f `pwd`/debian/w3m/usr/share/doc/w3m/ja/README.kokb
+ -rm -rf `pwd`/debian/w3m/usr/share/doc/w3m/ja/CVS
sed -e 's:^:$(builddir)/:' debian/examples.in > debian/examples
- dh_installexamples
- cd `pwd`/debian/tmp/usr/share/doc/w3m && \
+ cp debian/README.Debian.w3m-img `pwd`/debian/w3m-img/usr/share/doc/w3m-img/README.Debian
+ dh_installexamples -a
+ cd `pwd`/debian/w3m/usr/share/doc/w3m && \
mv ja/keymap.* ja/examples; mv ja/menu.* ja/examples
dh_installmenu
dh_installmime
dh_installemacsen
# dh_installinit
dh_installcron
- dh_installmanpages
- install -m 644 $(builddir)/doc-jp/HISTORY.kokb `pwd`/debian/tmp/usr/share/doc/w3m/changelog.w3m-kokb
- dh_installchangelogs $(builddir)/doc/HISTORY
- install -m 644 lisp/ChangeLog `pwd`/debian/tmp/usr/share/doc/w3m/changelog.w3m.el
- dh_strip
- dh_compress
+ dh_installman $(builddir)/doc/w3m.1
+ dh_installman debian/w3mman.1
+ install -m 644 $(builddir)/doc-jp/w3m.1 `pwd`/debian/w3m/usr/share/man/ja/man1/w3m.1
+ # dh_installchangelogs $(builddir)/doc/HISTORY
+ dh_installchangelogs -a $(builddir)/ChangeLog
+ dh_strip -a
+ dh_compress -a
dh_link usr/share/man/man1/w3m.1.gz usr/share/man/man1/w3m-ja.1.gz
dh_link usr/share/man/man1/w3m.1.gz usr/share/man/man1/w3m-en.1.gz
- dh_fixperms
- dh_suidregister
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
-# dh_makeshlibs
- dh_md5sums
- dh_builddeb
+ dh_link usr/share/man/ja/man1/w3m.1.gz usr/share/man/ja/man1/w3m-ja.1.gz
+ dh_link usr/share/man/ja/man1/w3m.1.gz usr/share/man/ja/man1/w3m-en.1.gz
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+# dh_makeshlibs -a
+ dh_md5sums -a
+ dh_builddeb -a
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
diff --git a/debian/rules-ssl b/debian/rules-ssl
index 8697624..423a978 100644
--- a/debian/rules-ssl
+++ b/debian/rules-ssl
@@ -6,6 +6,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export DH_COMPAT=3
+
nossl:
@echo change to nossl version...
@cd debian && for i in *-nossl; do \
@@ -23,19 +25,21 @@ ssl:
include debian/rules.mk
build: build-stamp
-build-stamp: setup-ja setup-en
+build-stamp: configure-stamp
dh_testdir
- sed -f debian/config.ssl.sed < debian/config.h-ja > $(buildjadir)/config.h
- cd $(buildjadir) && $(MAKE)
- sed -f debian/config.ssl.sed < debian/config.h-en > $(buildendir)/config.h
- cd $(buildendir) && $(MAKE)
+ (echo "# Configuration at "`hostname`; cat debian/config.param) > $(buildjadir)/config.param
+ cd $(buildjadir) && ./configure -yes -model=monster -lang=JA -clfags="-O2 -DDEBIAN" -code=E --gc-includedir=/usr/include/gc --ssl-includedir=/usr/include/openssl --mimetypes=/etc/mime.types
+ cd $(buildjadir) && LC_ALL=C $(MAKE) OPTS="-Wall -g"
+ (echo "# Configuration at "`hostname`; cat debian/config.param) > $(buildendir)/config.param
+ cd $(buildendir) && ./configure -yes -model=monster -lang=EN -cflags="-O2 -DDEBIAN" --gc-includedir=/usr/include/gc --ssl-includedir=/usr/include/openssl --mimetypes=/etc/mime.types
+ cd $(buildendir) && LC_ALL=C $(MAKE) OPTS="-Wall -g"
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -rf $(buildtree)
- rm -f extract-stamp patch-stamp build-stamp install-stamp
+ rm -f extract-stamp patch-stamp configure-stamp build-stamp install-stamp
rm -f debian/docs debian/examples
dh_clean
@@ -45,16 +49,16 @@ install-stamp: build-stamp
dh_testroot
dh_clean -k
dh_installdirs
- install -m 755 -s $(buildendir)/w3m `pwd`/debian/tmp/usr/bin/w3m-ssl-en
- install -m 755 -s $(buildjadir)/w3m `pwd`/debian/tmp/usr/bin/w3m-ssl-ja
+ install -m 755 -s $(buildendir)/w3m `pwd`/debian/w3m-ssl/usr/bin/w3m-ssl-en
+ install -m 755 -s $(buildjadir)/w3m `pwd`/debian/w3m-ssl/usr/bin/w3m-ssl-ja
touch install-stamp
# Build architecture-independent files here.
-binary-indep: build install
+binary-indep: build-stamp install-stamp
# We have nothing to do by default.
# Build architecture-dependent files here.
-binary-arch: build install
+binary-arch: build-stamp install-stamp
# dh_testversion
dh_testdir
dh_testroot
@@ -64,23 +68,25 @@ binary-arch: build install
# dh_installemacsen
# dh_installinit
# dh_installcron
-# dh_installmanpages
- install -m 644 $(builddir)/doc-jp/HISTORY.kokb `pwd`/debian/tmp/usr/share/doc/w3m-ssl/changelog.w3m-kokb
- dh_installchangelogs $(builddir)/doc/HISTORY
+# dh_installman $(builddir)/doc/w3m.1
+# install -m 644 $(builddir)/doc-jp/HISTORY.kokb `pwd`/debian/w3m-ssl/usr/share/doc/w3m-ssl/changelog.w3m-kokb
+ #dh_installchangelogs $(builddir)/doc/HISTORY
+ dh_installchangelogs $(builddir)/ChangeLog
dh_strip
dh_compress
- (cd debian/tmp/usr/share/doc/w3m-ssl; ls -1) | while read file; do \
+ (cd debian/w3m-ssl/usr/share/doc/w3m-ssl; ls -1) | while read file; do \
case $$file in changelog*|copyright*|README.Debian) continue;; esac;\
- test -d debian/tmp/usr/share/doc/w3m-ssl/$$file && continue; \
- rm -f debian/tmp/usr/share/doc/w3m-ssl/$$file; \
+ test -d debian/w3m-ssl/usr/share/doc/w3m-ssl/$$file && continue; \
+ rm -f debian/w3m-ssl/usr/share/doc/w3m-ssl/$$file; \
dh_link usr/share/doc/w3m/$$file usr/share/doc/w3m-ssl/$$file; \
done
- dh_link usr/share/w3m/examples usr/share/w3m-ssl/examples
- dh_link usr/share/w3m/ja usr/share/w3m-ssl/ja
+ dh_link usr/share/doc/w3m/examples usr/share/doc/w3m-ssl/examples
+ dh_link usr/share/doc/w3m/ja usr/share/doc/w3m-ssl/ja
dh_link usr/share/man/man1/w3m.1.gz usr/share/man/man1/w3m-ssl-ja.1.gz
dh_link usr/share/man/man1/w3m.1.gz usr/share/man/man1/w3m-ssl-en.1.gz
+ dh_link usr/share/man/ja/man1/w3m.1.gz usr/share/man/ja/man1/w3m-ssl-ja.1.gz
+ dh_link usr/share/man/ja/man1/w3m.1.gz usr/share/man/ja/man1/w3m-ssl-en.1.gz
dh_fixperms
- dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
diff --git a/debian/rules.mk b/debian/rules.mk
index 12a6046..69e60bb 100644
--- a/debian/rules.mk
+++ b/debian/rules.mk
@@ -1,16 +1,14 @@
# -*- Makefile -*-
#
buildtree=build-tree/
-sourcedir=w3m-0.1.11-pre
+sourcedir=w3m-0.3
builddir=$(buildtree)/$(sourcedir)
extract: extract-stamp
extract-stamp:
-rm -rf $(buildtree)
mkdir $(buildtree)
- tar zxfC upstream/w3m-0.1.11-pre.tar.gz $(buildtree)
- # gunzip < upstream/w3m-0.1.11-pre+.diff.gz | (cd $(builddir) && patch -p0)
- gunzip < upstream/w3m-0.1.11-pre-kokb23.patch.gz | (cd $(builddir) && patch -p1)
+ tar zxfC upstream/w3m-0.3.tar.gz $(buildtree)
touch extract-stamp
patch: patch-stamp
@@ -40,3 +38,7 @@ $(buildendir)/setup-stamp: extract-stamp patch-stamp
cp -a $(builddir) $(buildendir)
touch $(buildendir)/setup-stamp
+configure: configure-stamp
+configure-stamp: setup-ja setup-en
+ touch configure-stamp
+