File: rules

package info (click to toggle)
wiliki 0.6.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, forky, sid, trixie
  • size: 740 kB
  • sloc: lisp: 6,300; makefile: 245; sh: 167
file content (34 lines) | stat: -rwxr-xr-x 1,061 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

ROOTDIR=$(CURDIR)/debian/wiliki
RSSMIX=$(ROOTDIR)/usr/share/gauche-*/site/lib/wiliki/rssmix.scm
CGI=$(ROOTDIR)/usr/lib/cgi-bin/wiliki.cgi

%:
	dh $@ 

override_dh_auto_configure:
	./configure --prefix=/usr

override_dh_auto_install:
	dh_auto_install
	rm -f $(RSSMIX)
	sed -e '/:db-path "/,+6c\
     :db-path "/var/lib/wiliki/wikidata.dbm"\
     :log-file "wikidata.log"\
     :top-page "WiLiKi"\
     :title "Debian WiLiKi"\
     :description "Debian'\''s Default WiLiKi Site"\
     :style-sheet "/wiliki/wiliki.css"\
     :language '\''en\
     :charsets '\''((jp . utf-8) (en . utf-8))' src/wiliki.cgi > $(CGI)
	chmod +x $(CGI)