diff options
| author | Rafael Laboissiere <rafael@laboissiere.net> | 2015-11-11 12:20:59 -0200 |
|---|---|---|
| committer | Rafael Laboissiere <rafael@laboissiere.net> | 2015-11-11 12:20:59 -0200 |
| commit | e707bfca9dadfca8bc0ee89f55f5bdd6ef7250a1 (patch) | |
| tree | 212ecbf2f19b4706b8838bdbdd28dbfc1782b48b | |
Initial commit
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | Makefile | 29 | ||||
| -rw-r--r-- | apache/praat.conf.in | 7 | ||||
| -rw-r--r-- | repo/bin/add-pkg.sh | 13 | ||||
| -rw-r--r-- | repo/conf/distributions | 15 | ||||
| -rw-r--r-- | repo/conf/options | 3 | ||||
| -rw-r--r-- | www/index.html.in | 101 | ||||
| -rw-r--r-- | www/praat.gpg.key | 30 |
8 files changed, 203 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab7384b --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/repo/db +/repo/dists +/repo/pool +/www/index.html +/apache/praat.conf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1aec85a --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +INDEX = index.html +GPGKEY = praat.gpg.key +WWWDIR = /var/www/praat +WWWHOST = praat.cefala.org +APACHEDIR = /etc/apache2/sites-available +BUILD = www/$(INDEX) apache/praat.conf +REPODATA = repo/db repo/dists repop/pool +REPOHOST = www.cefala.org +USER = rlaboiss + +.PHONY: install +install: $(BUILD) + mkdir -p $(WWWDIR) + chown -R '$(USER):$(USER)' $(WWWDIR) + install --mode=644 www/$(INDEX) www/$(GPGKEY) $(WWWDIR) + install --mode=644 apache/praat.conf $(APACHEDIR) + a2ensite praat + service apache2 restart + +%: %.in + sed -e 's|@WWWHOST@|$(WWWHOST)|;s|@WWWDIR@|$(WWWDIR)|;s|@INDEX@|$(INDEX)|;s|@GPGKEY@|$(GPGKEY)|' $< > $@ + +.PHONY: clean +clean: + rm -f $(BUILD) + +.PHONY: install-repo +install-repo: + scp -r r$(REPODATA) '$(USER)@$(REPOHOST):$(WWWDIR)' diff --git a/apache/praat.conf.in b/apache/praat.conf.in new file mode 100644 index 0000000..e68a29d --- /dev/null +++ b/apache/praat.conf.in @@ -0,0 +1,7 @@ +<VirtualHost *:80> + ServerAdmin rafael@laboissiere.net + ServerName @WWWHOST@ + DirectoryIndex @INDEX@ + DocumentRoot @WWWDIR@ +</VirtualHost> +
\ No newline at end of file diff --git a/repo/bin/add-pkg.sh b/repo/bin/add-pkg.sh new file mode 100644 index 0000000..5c1b47c --- /dev/null +++ b/repo/bin/add-pkg.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +prog=${0##*/} + +if [ $# != 2 ] ; then + echo "Usage: $prog dist pkg.changes" >&2 + exit 1 +fi + +dist=$1 +chg=$(readlink -f $2) + +reprepro include $dist $chg diff --git a/repo/conf/distributions b/repo/conf/distributions new file mode 100644 index 0000000..b5582bd --- /dev/null +++ b/repo/conf/distributions @@ -0,0 +1,15 @@ +Origin: praat.cefala.org +Label: Praat backports APT repository +Codename: jessie +Architectures: i386 amd64 source +Components: main +Description: Backports for Praat (Debian stable and testing) +SignWith: 23F1C3E9 + +Origin: praat.cefala.org +Label: Praat backports APT repository +Codename: stretch +Architectures: i386 amd64 source +Components: main +Description: Backports for Praat (Debian stable and testing) +SignWith: 23F1C3E9 diff --git a/repo/conf/options b/repo/conf/options new file mode 100644 index 0000000..7b49bf9 --- /dev/null +++ b/repo/conf/options @@ -0,0 +1,3 @@ +verbose +ask-passphrase +basedir . diff --git a/www/index.html.in b/www/index.html.in new file mode 100644 index 0000000..d65f60f --- /dev/null +++ b/www/index.html.in @@ -0,0 +1,101 @@ +<html> +<head> +<style> +body { + text-align: center; + font: 100% sans-serif; + color: #000; + background-color: white; +} + +h1 { + color: #333; + font: 120%; + font-weight: 900; + font-style: bold; +} + +#Content { + width: 80%; + margin: 0px auto; + text-align: left; + padding: 15px; + border: 1px dashed #333; + background-color: #ddd; +} + +hr { + width: 80%; + border: 0; + height: 1px; + color: #333; + background-color: #333; +} + +pre { + background-color: #eee; +} + +</style> + +<body> + + <div id="Content"> + + <h1>APT repository for the Praat Debian packages</h1> + + <hr> + + <p><a href="http://praat.org">Praat</a>, the famous GUI program for + doing speech analysis and synthesis + <a href="https://packages.debian.org/source/sid/praat">is part</a> of + Debian. However, the package is outdated in Debian stable (a.k.a. + "jessie"). In this website, you will find an the APT repository with + the Debian packages for Praat that work in both the stable and testing + (a.k.a "stretch") distributions, for recent upstream versions and for + the amd64 and i386 architectures.</p> + + <p>For installing them, run the following command (as root):</p> + +<pre> + echo "deb http://@WWWHOST@/ jessie main" > /etc/apt/sources.list.d/praat.list +</pre> + + <p>or:</p> + +<pre> + echo "deb http://@WWWHOST@/ stretch main" > /etc/apt/sources.list.d/praat.list +</pre> + + <p>whether you are using the "jessie" or the "stretch" distribution, + respectively.</p> + + <p>This repository is signed. You should add the public GPG key to + your APT configuration, as follows:</p> + +<pre> + wget -O - http://@WWWHOST@/@GPGKEY@ | apt-key add - +</pre> + + <p>Once this is done, run the following commands:</p> + +<pre> + aptitude update + aptitude install prat/jessie +</pre> + + <p>or:</p> + +<pre> + aptitude update + aptitude install prat/stretch +</pre> + + <p>(You might also use "apt-get" instead of "aptitude" in the commands + above.)</p> + + <hr> + + <p>Problems? Suggestions? Contact rafael AT laboissiere DOT net.</p> + +</html> diff --git a/www/praat.gpg.key b/www/praat.gpg.key new file mode 100644 index 0000000..2bccda2 --- /dev/null +++ b/www/praat.gpg.key @@ -0,0 +1,30 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQENBFZDAhsBCACvl8HgLR+0rNYhE6tZUq1S9pQNwqrJi3riW8lXidhKQwuWp+u3 +VeYbh02Tarc84fzIiwSjYfYG68FKexJxH4Sx3HsKlkYulndxxCGS6IqqZXxC/d/8 +sI+3mFbF7cYAeNDARq3Evkyryld7A/Bm2+m2fOIzHc00jTsftbgMWfZrcS/5x7H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