Package: ifupdown
Version: 0.6.7
Severity: wishlist
Tags: patch
Hi,
Osamu Aoki pointed me to the fact that there are noweb-commented sources
in ifupdown, but the corresponding pdf documentation is not being built
currently. Here's a patch that does that. I also changed the
documentation sources so that the included figures get the maximum size
that's reasonable, and the Makefile target that creates execution.pdf
for inclusion in the final pdf: It got the bounding box wrong.
Regards, Frank
diff -Nur ifupdown-0.6.7.orig/debian/control ifupdown-0.6.7/debian/control
--- ifupdown-0.6.7.orig/debian/control 2005-04-04 17:39:17.000000000 +0200
+++ ifupdown-0.6.7/debian/control 2006-06-27 18:08:47.000000000 +0200
@@ -3,7 +3,7 @@
Priority: important
Maintainer: Anthony Towns <[EMAIL PROTECTED]>
Standards-Version: 3.6.1.0
-Build-Depends: debhelper (>= 4.1.68), nowebm
+Build-Depends: debhelper (>= 4.1.68), nowebm, dia, tetex-bin |
texlive-base-bin, tetex-extra | texlive-base,gs-gpl | gs
Package: ifupdown
Architecture: any
diff -Nur ifupdown-0.6.7.orig/debian/rules ifupdown-0.6.7/debian/rules
--- ifupdown-0.6.7.orig/debian/rules 2005-04-04 15:33:54.000000000 +0200
+++ ifupdown-0.6.7/debian/rules 2006-06-27 18:20:13.000000000 +0200
@@ -68,7 +68,7 @@
else \
chmod a+rx defn2c.pl defn2man.pl makecdep.sh makenwdep.sh; \
fi
- $(MAKE)
+ $(MAKE) default ifupdown.pdf
touch build-stamp
test: build
@@ -123,6 +123,10 @@
install -o $(ROOT_USER) -g $(ROOT_GROUP) -m 755
debian/upgrade-from-0.5.x.pl \
debian/tmp/usr/share/ifupdown/
+ # install docs
+ dh_installdirs usr/share/doc/ifupdown
+ install -m 0644 ifupdown.pdf debian/tmp/usr/share/doc/ifupdown/
+
touch install-stamp
# Build architecture-independent files here.
diff -Nur ifupdown-0.6.7.orig/debian/templates ifupdown-0.6.7/debian/templates
--- ifupdown-0.6.7.orig/debian/templates 2005-05-02 16:09:05.000000000
+0200
+++ ifupdown-0.6.7/debian/templates 2006-06-27 18:26:17.000000000 +0200
@@ -6,82 +6,37 @@
change made between version 0.5.x and 0.6.x of ifupdown. It is however
possible to automatically convert from the old format to the new in almost
all cases.
-Description-ca: Voleu actualitzar el fitxer /etc/network/interfaces?
- El format del fitxer /etc/network/interfaces de l'ifupdown s'ha modificat
- entre les versions 0.5.x i 0.6.x. Tot i aix�, en la majoria dels casos es
- pot actualitzar autom�ticament del format vell al nou.
-Description-cs: Aktualizovat /etc/network/interfaces?
- Mezi verzemi 0.5.x a 0.6 programu ifupdown do�lo k mal�, ale
- nekompatibiln� zm�n� form�tu souboru /etc/network/interfaces. V t�m��
- v�ech p��padech lze p�ev�st data ze star�ho form�tu do nov�ho zcela
- automaticky.
-Description-da: Opdat�r /etc/network/interfaces?
- Formatet i filen /etc/network/interfaces har f�et lavet en mindre men
- inkompatibel �ndring mellem version 0.5.x og 0.6.x af ifupdown. Det er dog
- muligt at automatisk konvertere fra det gamle format til det nye i n�sten
- alle tilf�lde.
-Description-de: Soll /etc/network/interfaces erneuert werden?
- Das Format von /etc/network/interfaces hat eine kleinere aber inkompatible
- �nderung zwischen Version 0.5.x und 0.6.x von ifupdown erfahren. Es ist
- jedoch in fast allen F�llen m�glich, automatisch vom alten in das neue
- Format zu konvertieren.
-Description-el: �� ����� �������� ��� /etc/network/interfaces;
- � ���� ��� /etc/network/interfaces ������ �� ��� ����� ���� �������� �����
- ��� ��� ������ ��� ������� ifupdown 0.5.x ��� 0.6.x. ������, ����� ������
- � �������� ��������� ��� ������ ����� ��� ��� ��� ������ ���� ���
- �����������.
-Description-es: �Actualizar /etc/network/interfaces
- El formato de /etc/network/interfaces ha sufrido un cambio peque�o pero
- incompatible entre las versiones 0.5.x y 0.6.x de ifupdown. No obstante,
- en casi todos los casos es posible realizar la conversi�n autom�ticamente
- entre el formato antiguo y el nuevo.
-Description-fr: Mettre � jour /etc/network/interfaces�?
- Le format du fichier /etc/network/interfaces a subi un changement mineur
- mais incompatible entre les versions 0.5.x et 0.6.x d'ifupdown. Il est
- n�anmoins possible de convertir automatiquement ce fichier de l'ancien
- format au nouveau, dans la plupart des cas.
-Description-it: Aggiornare /etc/network/interfaces?
- Il formato del file /etc/network/interfaces ha subito un piccolo
- cambiamento che lo rende incompatibile fra le versioni 0.5.x e 0.6.x di
- ifupdown. Comunque, nella maggior parte dei casi, � possibile convertire
- automaticamente il file dal vecchio formato al nuovo.
-Description-ja: /etc/network/interfaces ��������������?
- /etc/network/interfaces ����������ifupdown �� 0.5.x �� 0.6.x
-
��������������������������������������������������������������������������������������������������������������������
-Description-lt: Atnaujinti /etc/network/interfaces?
- Failo /etc/network/interfaces formatas ne�ymiai, bet nesuderinamai
- skiriasi tarp ifupdown versij� 0.5.x ir 0.6.x, ta�iau beveik visais
- atvejais galima automati�kai konvertuoti i� seno formato � nauj�.
-Description-nl: /etc/network/interfaces bijwerken?
- De indeling van /etc/network/interfaces heeft tussen versie 0.5.x en 0.6.x
- van ifupdown een kleine, maar incompatibele verandering ondergaan. In
- bijna alle gevallen is het echter mogelijk om automatisch het oude format
- naar het nieuwe om te zetten.
-Description-pl: Uaktualni� /etc/network/interfaces?
- W por�wnaniu z wersj� 0.5.x, wersja 0.6.x programu ifupdown wprowadza
- drobne zmiany, kt�re jednak powoduj�, �e stara wersja pliku
- /etc/network/interfaces mo�e nie pasowa� do nowej konfiguracji. Istnieje
- jednak mo�liwo�� automatycznej konwersji (w praktycznie wszystkich
- przypadkach) ze starego formatu do nowego.
-Description-pt_BR: Atualizar /etc/network/interfaces?
- O formato do arquivo /etc/network/interfaces sofreu uma mudan�a menor mas
- incompat�vel entre as vers�es 0.5.x e 0.6.x do pacote ifupdown. Por�m �
- poss�vel converter a partir do formato antigo para o novo formato na
- maioria dos casos.
-Description-ru: �������� /etc/network/interfaces?
- ������ /etc/network/interfaces ����� ���������, �� ������������� ���������
- ����� �������� 0.5.x � 0.6.x ifupdown. ������ �������� �������������
- ������������� ������ ������ � ����� ����� �� ���� �������.
-Description-sv: Uppdatera /etc/network/interfaces?
- Formatet p� /etc/network/interfaces genomgick en liten men inkompatibel
- �ndring mellan version 0.5.x och 0.6.x av ifupdown. Det �r dock m�jligt
- att n�stan alltid automatiskt konvertera fr�n det gamla formatet till det
- nya.
-Description-tr: /etc/network/interfaces g�ncellensin mi?
- /etc/network/interfaces dosya bi�eminde 0.5.x'den 0.6.x s�r�m�ne ge�i�te
- k���k fakat uyumsuzluk yaratan bir de�i�iklik oldu. Bununla birlikte eski
- bi�emin otomatik olarak yenisine d�n��t�r�lmesi neredeyse her durumda
- m�mk�nd�r.
-Description-zh_CN: ���� /etc/network/interfaces ����
- ifupdown 0.5.x �� 0.6.x �������� /etc/network/interfaces
-
������������������������������������������������������������������������������������������������
+Description-ca.UTF-8: Voleu actualitzar el fitxer /etc/network/interfaces?
+ El format del fitxer /etc/network/interfaces de l'ifupdown s'ha modificat
entre les versions 0.5.x i 0.6.x. Tot i aix��, en la majoria dels casos es pot
actualitzar autom��ticament del format vell al nou.
+Description-cs.UTF-8: Aktualizovat /etc/network/interfaces?
+ Mezi verzemi 0.5.x a 0.6 programu ifupdown do��lo k mal��, ale
nekompatibiln�� zm��n�� form��tu souboru /etc/network/interfaces. V t��m����
v��ech p����padech lze p��ev��st data ze star��ho form��tu do nov��ho zcela
automaticky.
+Description-da.UTF-8: Opdat��r /etc/network/interfaces?
+ Formatet i filen /etc/network/interfaces har f��et lavet en mindre men
inkompatibel ��ndring mellem version 0.5.x og 0.6.x af ifupdown. Det er dog
muligt at automatisk konvertere fra det gamle format til det nye i n��sten alle
tilf��lde.
+Description-de.UTF-8: Soll /etc/network/interfaces erneuert werden?
+ Das Format von /etc/network/interfaces hat eine kleinere aber inkompatible
��nderung zwischen Version 0.5.x und 0.6.x von ifupdown erfahren. Es ist jedoch
in fast allen F��llen m��glich, automatisch vom alten in das neue Format zu
konvertieren.
+Description-el.UTF-8: ���� ���������� ���������������� ������
/etc/network/interfaces;
+ �� �������� ������ /etc/network/interfaces ������������ ���� ������
���������� �������� ���������������� ���������� ������ ������ ������������
������ �������������� ifupdown 0.5.x ������ 0.6.x. ������������, ����������
������������ �� ���������������� ������������������ ������ ������������
���������� ������ ������ ������ ������������ �������� ������
����������������������.
+Description-es.UTF-8: ��Actualizar /etc/network/interfaces
+ El formato de /etc/network/interfaces ha sufrido un cambio peque��o pero
incompatible entre las versiones 0.5.x y 0.6.x de ifupdown. No obstante, en
casi todos los casos es posible realizar la conversi��n autom��ticamente entre
el formato antiguo y el nuevo.
+Description-fr.UTF-8: Mettre �� jour /etc/network/interfaces��?
+ Le format du fichier /etc/network/interfaces a subi un changement mineur mais
incompatible entre les versions 0.5.x et 0.6.x d'ifupdown. Il est n��anmoins
possible de convertir automatiquement ce fichier de l'ancien format au nouveau,
dans la plupart des cas.
+Description-it.UTF-8: Aggiornare /etc/network/interfaces?
+ Il formato del file /etc/network/interfaces ha subito un piccolo cambiamento
che lo rende incompatibile fra le versioni 0.5.x e 0.6.x di ifupdown. Comunque,
nella maggior parte dei casi, �� possibile convertire automaticamente il file
dal vecchio formato al nuovo.
+Description-ja.UTF-8: /etc/network/interfaces ���������������������?
+ /etc/network/interfaces ���������������ifupdown ��� 0.5.x ��� 0.6.x
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
+Description-lt.UTF-8: Atnaujinti /etc/network/interfaces?
+ Failo /etc/network/interfaces formatas ne��ymiai, bet nesuderinamai skiriasi
tarp ifupdown versij�� 0.5.x ir 0.6.x, ta��iau beveik visais atvejais galima
automati��kai konvertuoti i�� seno formato �� nauj��.
+Description-nl.UTF-8: /etc/network/interfaces bijwerken?
+ De indeling van /etc/network/interfaces heeft tussen versie 0.5.x en 0.6.x
van ifupdown een kleine, maar incompatibele verandering ondergaan. In bijna
alle gevallen is het echter mogelijk om automatisch het oude format naar het
nieuwe om te zetten.
+Description-pl.UTF-8: Uaktualni�� /etc/network/interfaces?
+ W por��wnaniu z wersj�� 0.5.x, wersja 0.6.x programu ifupdown wprowadza
drobne zmiany, kt��re jednak powoduj��, ��e stara wersja pliku
/etc/network/interfaces mo��e nie pasowa�� do nowej konfiguracji. Istnieje
jednak mo��liwo���� automatycznej konwersji (w praktycznie wszystkich
przypadkach) ze starego formatu do nowego.
+Description-pt_BR.UTF-8: Atualizar /etc/network/interfaces?
+ O formato do arquivo /etc/network/interfaces sofreu uma mudan��a menor mas
incompat��vel entre as vers��es 0.5.x e 0.6.x do pacote ifupdown. Por��m ��
poss��vel converter a partir do formato antigo para o novo formato na maioria
dos casos.
+Description-ru.UTF-8: ���������������� /etc/network/interfaces?
+ ������������ /etc/network/interfaces ���������� ������������������, ����
�������������������������� ������������������ ���������� ���������������� 0.5.x
�� 0.6.x ifupdown. ������������ ���������������� ��������������������������
�������������������������� ������������ ������������ �� ���������� ����������
���� �������� ��������������.
+Description-sv.UTF-8: Uppdatera /etc/network/interfaces?
+ Formatet p�� /etc/network/interfaces genomgick en liten men inkompatibel
��ndring mellan version 0.5.x och 0.6.x av ifupdown. Det ��r dock m��jligt att
n��stan alltid automatiskt konvertera fr��n det gamla formatet till det nya.
+Description-tr.UTF-8: /etc/network/interfaces g��ncellensin mi?
+ /etc/network/interfaces dosya bi��eminde 0.5.x'den 0.6.x s��r��m��ne
ge��i��te k������k fakat uyumsuzluk yaratan bir de��i��iklik oldu. Bununla
birlikte eski bi��emin otomatik olarak yenisine d��n����t��r��lmesi neredeyse
her durumda m��mk��nd��r.
+Description-zh_CN.UTF-8: ������ /etc/network/interfaces ������
+ ifupdown 0.5.x ��� 0.6.x ������������ /etc/network/interfaces
������������������������������������������������������������������������������������������������������������������������������������������������
diff -Nur ifupdown-0.6.7.orig/ifupdown.nw ifupdown-0.6.7/ifupdown.nw
--- ifupdown-0.6.7.orig/ifupdown.nw 2005-04-05 19:31:29.000000000 +0200
+++ ifupdown-0.6.7/ifupdown.nw 2006-06-27 17:35:08.000000000 +0200
@@ -75,7 +75,7 @@
flow amongst the modules.
\begin{center}
-\includegraphics[height=45mm]{modules}
+\includegraphics[width=\linewidth]{modules}
\end{center}
Much of the information sharing will be done by defining and filling
@@ -2107,7 +2107,7 @@
diagram is probably useful:
\begin{center}
-\includegraphics[height=60mm]{execution}
+\includegraphics[width=\linewidth]{execution}
\end{center}
At a conceptual level, [[iface_up()]] and [[iface_down()]] have a
diff -Nur ifupdown-0.6.7.orig/Makefile ifupdown-0.6.7/Makefile
--- ifupdown-0.6.7.orig/Makefile 2005-04-05 19:35:17.000000000 +0200
+++ ifupdown-0.6.7/Makefile 2006-06-27 17:56:44.000000000 +0200
@@ -26,7 +26,7 @@
ln ${BASEDIR}/sbin/ifup ${BASEDIR}/sbin/ifdown
clean :
- rm -f *.aux *.toc *.log *.bbl *.blg *.ps *.eps *.pdf
+ rm -f *.aux *.toc *.log *.bbl *.blg *.ps *.eps *.pdf *.tex *.ps.gz
rm -f *.o *.d $(patsubst %.defn,%.c,$(DEFNFILES)) *~
rm -f $(patsubst %.defn,%.man,$(DEFNFILES))
rm -f ifup ifdown interfaces.5 ifdown.8
@@ -80,7 +80,8 @@
dia --nosplash -e $@ $<
%.pdf : %.eps
- gs -q -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile=$@ - < $<
+ epstopdf $<
+# gs -q -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile=$@ - < $<
%.d: %.nw makenwdep.sh
./makenwdep.sh $< > $@
%.d: %.c makecdep.sh
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)