From e707bfca9dadfca8bc0ee89f55f5bdd6ef7250a1 Mon Sep 17 00:00:00 2001 From: Rafael Laboissiere Date: Wed, 11 Nov 2015 12:20:59 -0200 Subject: Initial commit --- .gitignore | 5 +++ Makefile | 29 ++++++++++++++ apache/praat.conf.in | 7 ++++ repo/bin/add-pkg.sh | 13 +++++++ repo/conf/distributions | 15 +++++++ repo/conf/options | 3 ++ www/index.html.in | 101 ++++++++++++++++++++++++++++++++++++++++++++++++ www/praat.gpg.key | 30 ++++++++++++++ 8 files changed, 203 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 apache/praat.conf.in create mode 100644 repo/bin/add-pkg.sh create mode 100644 repo/conf/distributions create mode 100644 repo/conf/options create mode 100644 www/index.html.in create mode 100644 www/praat.gpg.key 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 @@ + + ServerAdmin rafael@laboissiere.net + ServerName @WWWHOST@ + DirectoryIndex @INDEX@ + DocumentRoot @WWWDIR@ + + \ 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 @@ + + + + + + +
+ +

APT repository for the Praat Debian packages

+ +
+ +

Praat, the famous GUI program for + doing speech analysis and synthesis + is part 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.

+ +

For installing them, run the following command (as root):

+ +
+  echo "deb http://@WWWHOST@/ jessie main" > /etc/apt/sources.list.d/praat.list
+
+ +

or:

+ +
+  echo "deb http://@WWWHOST@/ stretch main" > /etc/apt/sources.list.d/praat.list
+
+ +

whether you are using the "jessie" or the "stretch" distribution, + respectively.

+ +

This repository is signed. You should add the public GPG key to + your APT configuration, as follows:

+ +
+  wget -O - http://@WWWHOST@/@GPGKEY@ | apt-key add -
+
+ +

Once this is done, run the following commands:

+ +
+  aptitude update
+  aptitude install prat/jessie
+
+ +

or:

+ +
+  aptitude update
+  aptitude install prat/stretch
+
+ +

(You might also use "apt-get" instead of "aptitude" in the commands + above.)

+ +
+ +

Problems? Suggestions? Contact rafael AT laboissiere DOT net.

+ + 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/5x7HW +E5lqnfAhjsvR4kKtzBoi6C6HH86oySI/LrONweG/wodWDwYf/gBmAEI3fhNc4Jcb +uu6Kvug6mBXp2Ws53IZeg1XtUqMic4+kiLYpmRYd6dh4dtRLriELv6OpHg0/CdIG +6vwy7FsX6ouEJ8liHz1yztEJJgfgRJ3JzCxbABEBAAG0MlJhZmFlbCBMYWJvaXNz +aWVyZSA8cmFmYWVsLWRlYmlhbkBsYWJvaXNzaWVyZS5uZXQ+iQE3BBMBCAAhBQJW +QwIbAhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAAAoJENIc7D8j8cPp9/kH/26v +p1syWARJazXGlBAdf2fWj1cUTO3prysrc0un6HLYqW5SnU0yO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