+VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+
all: build
build:
install -o root -g root -m 0755 cron.auf-git-etc $(DESTDIR)/usr/sbin/
clean:
- rm configure-stamp build-stamp debuild-stamp
test:
debuild -I.git -I*.ex -b -us -uc -tc
- rsync -avP ../auf-git-etc_*.deb test.vn.auf.org:/tmp/
+ rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/
-debuild: debuild-stamp
-debuild-stamp:
+release:
debuild -I.git -I*.ex
- touch debuild-stamp
-
-release: debuild
debrelease --dput auf-debian
+auf-git-etc (1.3.3) stable; urgency=low
+
+ * Ajout du suivi de /boot/menu.lst
+ * Quelques exclusions supplémentaires, en particulier :
+ - /etc/krb5.keytab : le fichier de clés Kerberos principal
+ - *.key : généralement des clés privées de type RSA/DSA
+ - *.log : les fichiers de type journaux
+ * Ajout de la spécification de l'encodage UTF-8 dans les courriels
+
+ -- Progfou <jean-christophe.andre@auf.org> Sun, 19 Oct 2008 23:59:59 +0700
+
auf-git-etc (1.3.2) stable; urgency=low
* Restons silencieux quand il n'y a rien d'intéressant à annoncer.
#!/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
+configure:
-
-
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
-
- touch configure-stamp
-
-
-build: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
- #docbook-to-man debian/auf-git-etc.sgml > auf-git-etc.1
-
- touch $@
+build:
clean:
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
-$(MAKE) clean
-
dh_clean
install: build
dh_testroot
dh_clean -k
dh_installdirs
-
- # Add here commands to install the package into debian/auf-git-etc.
$(MAKE) DESTDIR=$(CURDIR)/debian/auf-git-etc install
-
# Build architecture-independent files here.
binary-indep: build install
-# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_installdocs
# dh_installexamples
# dh_install
-# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
# dh_python
# dh_installinit
dh_installcron
-# dh_installinfo
# dh_installman
-# dh_link
-# dh_strip
dh_compress
dh_fixperms
-# dh_perl
-# dh_makeshlibs
dh_installdeb
-# dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# ... mais dans /etc on interdit certains fichiers :
/etc/*shadow*
/etc/ssh/ssh_host_*_key
+/etc/krb5.keytab
/etc/mtab
/etc/adjtime
/etc/ld.so.cache
/var/chroot/bind/*
!/var/chroot/bind/etc
/var/chroot/bind/etc/bind/rndc.key
+# Le /boot/grub/menu.lst peut être intéressant à suivre aussi
+!/boot
+/boot/*
+!/boot/grub
+/boot/grub/*
+!/boot/grub/menu.lst
# quelques type fichiers à ne pas jamais considérer, globalement :
htpasswd
.htpasswd
*#
*-
*.bak
+# toutes les clés, généralement type partie privée RSA/DSA
+*.key
+# on ne suit pas les log (dans /etc ?!)
+*.log
git show --pretty=email |
sed -e '1,6s/^From: /From: git '`hostname -f`' - /' \
-e '1,6s/^Subject: \[PATCH\]/Subject: git-commit:/' \
- -e '3iTo: '"${recipients}" |
+ -e '3iTo: '"${recipients}" \
+ -e '4iContent-Type: text/plain; charset=utf-8' |
head -c 16k | /usr/sbin/sendmail ${recipients}
exit 0