]> git.pld-linux.org Git - packages/setup.git/commitdiff
This commit was manufactured by cvs2git to create branch 'AC-branch'.
authorcvs2git <feedback@pld-linux.org>
Tue, 27 May 2008 11:42:45 +0000 (11:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Cherrypick from master 2008-05-27 11:42:45 UTC Elan Ruusamäe <glen@pld-linux.org> '- kill trailing spaces from services file, rel 1':
    setup-iana-etc.patch -> 1.1
    setup-profile.env.patch -> 1.1
    setup-services.patch -> 1.3
    setup.spec -> 1.140

setup-iana-etc.patch [new file with mode: 0644]
setup-profile.env.patch [new file with mode: 0644]
setup-services.patch [new file with mode: 0644]
setup.spec [new file with mode: 0644]

diff --git a/setup-iana-etc.patch b/setup-iana-etc.patch
new file mode 100644 (file)
index 0000000..4a7d6d7
--- /dev/null
@@ -0,0 +1,82 @@
+--- setup-2.4.11/iana-etc-2.20/services.gawk.orig      2006-11-14 21:26:22.000000000 +0100
++++ setup-2.4.11/iana-etc-2.20/services.gawk   2007-11-25 17:06:06.113293195 +0100
+@@ -16,7 +16,7 @@
+     while (getline <"port-aliases") {
+       sub(/#.*/, "")
+       if (/^[ \t]*$/) { continue }
+-      alias_list[$1] = substr($0, index($0, $2))
++      alias_list[$1] = substr($0, index(substr($0, length($1)), $2)+length($1)-1)
+     }
+ }
+ function aliases(n) {
+@@ -43,6 +43,8 @@
+     if (length(protocols[0]) == 0) {
+       protocols[0] = "/tcp"
+       protocols[1] = "/udp"
++    } else if (1 in protocols) {
++      delete protocols[1]
+     }
+     for (i = start; i <= end; i++) {
+       for (p in protocols) {
+--- setup-2.4.11/iana-etc-2.20/Makefile.orig   2006-11-14 18:53:41.000000000 +0100
++++ setup-2.4.11/iana-etc-2.20/Makefile        2007-11-25 15:16:05.825164209 +0100
+@@ -65,10 +65,10 @@
+ protocols: protocol-numbers protocols.gawk
+       $(AWK) --re-interval -f protocols.gawk -v strip=$(STRIP) \
+-          protocol-numbers > protocols
++          protocol-numbers | unexpand -a > protocols
+ services: port-numbers services.gawk
+-      $(AWK) -f services.gawk -v strip=$(STRIP) port-numbers > services
++      $(AWK) -f services.gawk -v strip=$(STRIP) port-numbers | unexpand -a > services
+ dist: clean
+       rm -vrf ../iana-etc-`cat VERSION`
+--- setup-2.4.11/iana-etc-2.20/port-aliases.orig       2006-11-14 17:01:10.000000000 +0100
++++ setup-2.4.11/iana-etc-2.20/port-aliases    2007-11-25 15:59:09.044373483 +0100
+@@ -12,3 +12,44 @@
+ nicname whois
++# PLD additions
++discard sink null
++systat users
++qotd quote
++chargen ttytst source
++smtp mail
++time timserver
++rlp resource
++name nameserver
++http www www-http
++kerberos krb5 kerberos5
++hostname hostnames
++iso-tsap tsap
++cso csnet-ns cso-ns
++pop2 postoffice pop pop-2
++pop3 pop-3
++sunrpc portmapper
++auth tap
++nntp untp
++imap imap2
++snmptrap snmp-trap
++z39.50 z3950 wais
++biff comsat
++who whod
++shell cmd
++printer spooler
++utime unixtime
++router route routed
++courier rpc
++conference chat
++netnews readnews
++uucp uucpd
++kshell krcmd
++new-rwho new-who
++rmonitor rmonitord
++nntps snntp
++kerberos-iv kerberos4
++telnets stelnet
++postgresql postgres
++jms irrd
++sane-port sane
diff --git a/setup-profile.env.patch b/setup-profile.env.patch
new file mode 100644 (file)
index 0000000..f8436be
--- /dev/null
@@ -0,0 +1,45 @@
+Index: profile
+===================================================================
+RCS file: /cvsroot/setup/etc/profile,v
+retrieving revision 1.48
+diff -u -r1.48 profile
+--- ./etc/profile      26 May 2005 18:27:14 -0000      1.48
++++ ./etc/profile      30 Apr 2006 11:23:40 -0000
+@@ -115,19 +115,24 @@
+ # example:
+ # cat /etc/env.d/VARIABLE
+ # VARIABLE="value"
+-for i in /etc/env.d/* ; do
+-      NAME=`basename $i`
+-      case $NAME in
+-              *~ | *.bak | *.old | *.rpmnew | *.rpmsave )
+-                      # nothing
+-                      ;;
+-              * )
+-                      if [ -r $i ]; then
+-                              . $i; export $NAME
+-                      fi
+-                      ;;
+-      esac
+-done
++if [ -f /etc/profile.env ]; then
++      . /etc/profile.env
++else
++      for i in /etc/env.d/* ; do
++              NAME=${i##*/}
++              case $NAME in
++                      *~ | *.bak | *.old | *.rpmnew | *.rpmsave )
++                              # nothing
++                              ;;
++                      * )
++                              if [ -r $i ]; then
++                                      . $i; export $NAME
++                              fi
++                              ;;
++              esac
++      done
++      unset NAME
++fi
+ # Scripts:
+ for i in /etc/profile.d/*.sh ; do
diff --git a/setup-services.patch b/setup-services.patch
new file mode 100644 (file)
index 0000000..29558ad
--- /dev/null
@@ -0,0 +1,201 @@
+--- setup-2.4.11/iana-etc-2.20/services.generated      2007-11-25 16:10:46.900142000 +0100
++++ setup-2.4.11/iana-etc-2.20/services        2007-11-25 16:59:22.466290662 +0100
+@@ -170,8 +170,6 @@
+ graphics       41/udp    # Graphics
+ name           42/tcp nameserver    # Host Name Server
+ name           42/udp nameserver    # Host Name Server
+-nameserver     42/tcp    # Host Name Server
+-nameserver     42/udp    # Host Name Server
+ nicname                43/tcp whois    # Who Is
+ nicname                43/udp whois    # Who Is
+ mpm-flags      44/tcp    # MPM FLAGS Protocol
+@@ -276,10 +274,6 @@
+ #                        David Zimmerman <dpz@RUTGERS.EDU>
+ http           80/tcp www www-http    # World Wide Web HTTP
+ http           80/udp www www-http    # World Wide Web HTTP
+-www            80/tcp    # World Wide Web HTTP
+-www            80/udp    # World Wide Web HTTP
+-www-http       80/tcp    # World Wide Web HTTP
+-www-http       80/udp    # World Wide Web HTTP
+ #                        Tim Berners-Lee <timbl@W3.org>
+ hosts2-ns      81/tcp    # HOSTS2 Name Server
+ hosts2-ns      81/udp    # HOSTS2 Name Server
+@@ -299,8 +293,8 @@
+ mfcobol                86/tcp    # Micro Focus Cobol
+ mfcobol                86/udp    # Micro Focus Cobol
+ #                        Simon Edwards <--none--->
+-#              87/tcp    any private terminal link
+-#              87/udp    any private terminal link
++ttylink               87/tcp          # any private terminal link
++ttylink               87/udp          # any private terminal link
+ #                        Jon Postel <postel@isi.edu>
+ kerberos       88/tcp krb5 kerberos5    # Kerberos
+ kerberos       88/udp krb5 kerberos5    # Kerberos
+@@ -354,10 +348,7 @@
+ #                        Patrick McNamee <--none--->
+ cso           105/tcp csnet-ns cso-ns    # CCSO name server protocol
+ cso           105/udp csnet-ns cso-ns    # CCSO name server protocol
+-#                        Martin Hamilton <martin@mrrl.lut.as.uk>           
+-csnet-ns      105/tcp    # Mailbox Name Nameserver
+-csnet-ns      105/udp    # Mailbox Name Nameserver
+-#                        Marvin Solomon <solomon@CS.WISC.EDU>
++#                        Martin Hamilton <martin@mrrl.lut.as.uk>, Marvin Solomon <solomon@CS.WISC.EDU>
+ 3com-tsmux    106/tcp    # 3COM-TSMUX
+ 3com-tsmux    106/udp    # 3COM-TSMUX
+ #                        Jeremy Siegel <jzs@NSD.3Com.COM>
+@@ -380,8 +371,7 @@
+ mcidas                112/tcp    # McIDAS Data Transmission Protocol
+ mcidas                112/udp    # McIDAS Data Transmission Protocol
+ #                        Glenn Davis <support@unidata.ucar.edu>
+-ident         113/tcp    # 
+-auth          113/tcp tap    # Authentication Service
++auth          113/tcp tap ident    # Authentication Service
+ auth          113/udp tap    # Authentication Service
+ #                        Mike St. Johns <stjohns@arpa.mil>
+ #             114        Deprecated June 2004
+@@ -1177,6 +1167,7 @@
+ kpasswd               464/tcp    # kpasswd
+ kpasswd               464/udp    # kpasswd
+ #                        Theodore Ts'o <tytso@MIT.EDU>
++smtps         465/tcp ssmtp   # (not in IANA!)
+ urd           465/tcp    # URL Rendesvous Directory for SSM
+ igmpv3lite    465/udp    # IGMP over UDP for SSM 
+ #                        Toerless Eckert <eckert@cisco.com>
+@@ -1322,7 +1313,6 @@
+ exec          512/tcp    # remote process execution;
+ #                        authentication performed using
+ #                        passwords and UNIX login names
+-comsat                512/udp
+ biff          512/udp comsat    # used by mail system to notify users
+ #                        of new mail received; currently
+ #                        receives messages only from 
+@@ -2050,6 +2040,7 @@
+ omginitialrefs        900/tcp    # OMG Initial Refs
+ omginitialrefs        900/udp    # OMG Initial Refs
+ #                        Christian Callsen <Christian.Callsen@eng.sun.com>
++swat          901/tcp         # (not in IANA!) Samba Web Administration Tool
+ smpnameres    901/tcp    # SMPNAMERES
+ smpnameres    901/udp    # SMPNAMERES
+ #                        Leif Ekblad <leif@rdos.net>
+@@ -4918,13 +4909,15 @@
+ tcp-id-port   1999/tcp   # cisco identification port
+ tcp-id-port   1999/udp   # cisco identification port
+ #
+-cisco-sccp    2000/tcp   # Cisco SCCP
++cisco-sccp    2000/tcp sieve   # Cisco SCCP
++                                 # sieve used by cyrus-imapd timsieved daemon
+ cisco-sccp    2000/udp   # Cisco SCCp
+ #                        Dan Wing <dwing@cisco.com> November 2003
+ dc            2001/tcp
+ wizard                2001/udp   # curry
+ globe         2002/tcp
+ globe         2002/udp
++cfinger               2003/tcp        # (not in IANA!) GNU Finger
+ mailbox               2004/tcp
+ emce          2004/udp   # CCWS mm conf
+ berknet               2005/tcp
+@@ -5024,10 +5017,10 @@
+ dls-monitor   2048/tcp
+ dls-monitor   2048/udp
+ #                       <== NOTE Conflict on 2049 !
+-shilp         2049/tcp
+-shilp         2049/udp
+ nfs           2049/tcp   # Network File System - Sun Microsystems
+ nfs           2049/udp   # Network File System - Sun Microsystems
++shilp         2049/tcp
++shilp         2049/udp
+ #                        Brent Callaghan <brent@terra.eng.sun.com>
+ av-emb-config 2050/tcp   # Avaya EMB Config Port
+ av-emb-config 2050/udp   # Avaya EMB Config Port
+@@ -12085,6 +12078,7 @@
+ #                        Mark Miller <mmiller@MICROSOFT.com>
+ auriga-router 5680/tcp   # Auriga Router Service
+ auriga-router 5680/udp   # Auriga Router Service
++canna         5680/tcp        # (not in IANA!) cannaserver
+ #                        Vincent Gaudeul <technique@auriga.fr> February 2006
+ ncxcp         5681/tcp   # Net-coneX Control Protocol
+ ncxcp         5681/udp   # Net-coneX Control Protocol
+@@ -12715,11 +12709,13 @@
+ #             6632-6664  Unassigned
+ ircu          6665/tcp  # IRCU
+ ircu          6666/tcp  # IRCU
++ircu          6665/udp  # IRCU
++ircu          6666/udp  # IRCU
++ircd          6667/tcp        # Internet Relay Chat
++ircd          6667/udp        # Internet Relay Chat
+ ircu          6667/tcp  # IRCU
+ ircu          6668/tcp  # IRCU
+ ircu          6669/tcp  # IRCU
+-ircu          6665/udp  # IRCU
+-ircu          6666/udp  # IRCU
+ ircu          6667/udp  # IRCU
+ ircu          6668/udp  # IRCU
+ ircu          6669/udp  # IRCU
+@@ -13660,7 +13656,7 @@
+ cddbp-alt     8880/udp    # CDDBP
+ #                         Steve Scherf <steve@moonsoft.com>
+ #             8881-8887   Unassigned
+-ddi-tcp-1     8888/tcp    # NewsEDGE server TCP (TCP 1)
++ddi-tcp-1     8888/tcp irr_rpsl_submit   # NewsEDGE server TCP (TCP 1)
+ ddi-udp-1     8888/udp    # NewsEDGE server UDP (UDP 1)
+ ddi-tcp-2     8889/tcp    # Desktop Data TCP 1
+ ddi-udp-2     8889/udp    # NewsEDGE server broadcast
+@@ -14105,6 +14101,10 @@
+ famdc         10081/tcp  # FAM Archive Server
+ famdc         10081/udp  # FAM Archive Server
+ #                        Frode Randers <Frode.Randers@tietoenator.com> January 2006
++kamanda               10081/tcp       # (not in IANA) amanda backup services (Kerberos)
++kamanda               10081/udp       # (not in IANA) amanda backup services (Kerberos)
++amandaidx     10082/tcp       # (not in IANA) amanda backup services
++amidxtape     10083/tcp       # (not in IANA) amanda backup services
+ #             10082-10099 Unassigned
+ itap-ddtp     10100/tcp  # VERITAS ITAP DDTP
+ itap-ddtp     10100/udp  # VERITAS ITAP DDTP
+@@ -14305,6 +14305,8 @@
+ tsaf          12753/udp  # tsaf port   
+ #                        Andreas Fehr <andreas@mrs.ch>
+ #             12754-13159 Unassigned
++netserver     12865/tcp       # Netperf Server
++netserver     12865/udp       # Netperf Server
+ i-zipqd               13160/tcp  # I-ZIPQD
+ i-zipqd               13160/udp  # I-ZIPQD
+ #                        Chuck Runquist <crunquist@quarterdeck.com>
+@@ -14655,6 +14657,9 @@
+ wnn6          22273/tcp  # wnn6
+ wnn6          22273/udp  # wnn6
+ #                        Yasunari Gon Yamasita <yamasita@omronsoft.co.jp>
++wnn4_Cn               22289/tcp       # (not in IANA!) cWnn (Chinese input system/China)
++wnn4_Kr               22305/tcp       # (not in IANA!) kWnn (Korean input system)
++wnn4_Tw               22321/tcp       # (not in IANA!) tWnn (Chinese input system/Taiwan)
+ #             22274-22554 Unassigned
+ vocaltec-wconf        22555/tcp  # Vocaltec Web Conference
+ vocaltec-phone        22555/udp  # Vocaltec Internet Phone
+@@ -14870,6 +14875,7 @@
+ #                         Balduin Mueller-Platz 
+ #                         <balduin.mueller-platz@pago.de> March 2002
+ #             30003-30998 Unassigned
++csync2                30865/tcp   # Cluster sync (not in IANA)
+ ovobs         30999/tcp   # OpenView Object Server
+ ovobs         30999/udp   # OpenView Object Server
+ #                         Bob Wernsman <bob.wernsman@hp.com> May 2006
+@@ -15121,6 +15127,20 @@
+ #                         Bjorn de Bonnenfant <bdeb@iqobject.com> November 2003
+ #             48620-49150 Unassigned
+ #             49151       IANA Reserved
++
++tfido         60177/tcp       # (not in IANA) Ifmail
++tfido         60177/udp       # (not in IANA) Ifmail
++fido          60179/tcp       # (not in IANA) Ifmail
++fido          60179/udp       # (not in IANA) Ifmail
++
++#
++# Datagram Delivery Protocol services (not in IANA)
++#
++rtmp          1/ddp           # Routing Table Maintenance Protocol
++nbp           2/ddp           # Name Binding Protocol
++echo          4/ddp           # AppleTalk Echo Protocol
++zip           6/ddp           # Zone Information Protocol
++
+ # 
+ # DYNAMIC AND/OR PRIVATE PORTS
+ # 
diff --git a/setup.spec b/setup.spec
new file mode 100644 (file)
index 0000000..04aed9d
--- /dev/null
@@ -0,0 +1,135 @@
+#
+# TODO:
+# - make some README.PLD with system features description
+#
+%define        iana_etc_ver    2.20
+%undefine      with_ccache
+#
+Summary:       Simple setup files
+Summary(de.UTF-8):     Einfache Setup-Dateien
+Summary(es.UTF-8):     Varios archivos básicos de configuración
+Summary(fr.UTF-8):     Fichiers de configuration simples
+Summary(ja.UTF-8):     サンプルセットアップファイル
+Summary(pl.UTF-8):     Podstawowe pliki systemu Linux
+Summary(pt_BR.UTF-8):  Vários arquivos básicos de configuração
+Summary(tr.UTF-8):     Basit kurulum dosyaları
+Name:          setup
+Version:       2.5.7
+Release:       1
+License:       Public Domain, partially BSD-like
+Group:         Base
+Source0:       ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.bz2
+# Source0-md5: b7c60de0bd7cf4df6c491758a6c00219
+Source1:       http://sethwklein.net/projects/iana-etc/downloads/iana-etc-%{iana_etc_ver}.tar.bz2
+# Source1-md5: 51d584b7b6115528c21e8ea32250f2b1
+Patch0:                %{name}-iana-etc.patch
+# This is source of non-iana changes in services file
+Patch1:                %{name}-services.patch
+AutoReqProv:   no
+BuildRequires: dietlibc-static
+BuildRequires: gawk
+Provides:      group(fuse)
+Conflicts:     FHS < 2.3
+Conflicts:     glibc < 6:2.4-4.1
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sbindir        /sbin
+
+%description
+This package contains a number of very important configuration and
+setup files, including the passwd, group, profile files, etc.
+
+%description -l de.UTF-8
+Dieses Paket enthält wichtige Konfigurations- und Setup-Dateien, u.a.
+passwd-, group-, profile-Dateien usw.
+
+%description -l es.UTF-8
+Este paquete contiene una variedad de archivos de configuración y
+setup muy importantes, incluyendo el passwd, group, archivos de
+"perfil", etc.
+
+%description -l fr.UTF-8
+Ce paquetage contient un nombre de fichiers de configuration très
+importants, comme passwd, group, les fichiers profile, etc.
+
+%description -l ja.UTF-8
+このsetupパッケージには、passwd, group, profile などの、
+重要なシステム設定ファイルが含まれてます。
+
+%description -l pl.UTF-8
+Pakiet ten zawiera wiele bardzo ważnych plików konfiguracyjnych dla
+Twojego systemu.
+
+%description -l pt_BR.UTF-8
+Este pacote contém uma variedade de arquivos de configuração e setup
+muito importantes, incluindo o passwd, group, arquivos de "perfil",
+etc.
+
+%description -l tr.UTF-8
+Bu paket, passwd, group, profile gibi çok önemli ayar ve kurulum
+dosyalarını içerir.
+
+%prep
+%setup -q -a1
+%patch0 -p1
+mv iana-etc{-%{iana_etc_ver},}
+
+%build
+%{__make} -C iana-etc
+%{__patch} iana-etc/services %{PATCH1}
+
+# kill trailing spaces/tabs
+%{__sed} -i -e 's,[ \t]\+$,,' iana-etc/services
+
+%{__make} \
+       OPT_FLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmcflags} %{rpmldflags}" \
+       CC="diet %{__cc}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+cp -a iana-etc/protocols $RPM_BUILD_ROOT%{_sysconfdir}/protocols
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerpostun -p %{_sbindir}/joinpasswd -- %{name} < %{version}-%{release}
+
+%triggerin -p %{_sbindir}/update-fstab -- %{name} < 2.4.10-1
+
+%post -p /sbin/postshell
+-/sbin/env-update -u
+
+%postun -p /sbin/postshell
+-/sbin/env-update -u
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog
+%attr(755,root,root) %{_sbindir}/joinpasswd
+%attr(755,root,root) %{_sbindir}/postshell
+%attr(755,root,root) %{_sbindir}/update-fstab
+%attr(755,root,root) /etc/profile.d/*.sh
+%attr(755,root,root) /etc/profile.d/*.csh
+%dir /etc/profile.d
+%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/*
+%dir %{_sysconfdir}/env.d
+%dir %{_sysconfdir}/shrc.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fstab
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/host.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/profile
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/protocols
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/secure*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/services
+%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/filesystems
+%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/motd
+%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/resolv.conf
+%ghost %{_sysconfdir}/shells
This page took 0.121124 seconds and 4 git commands to generate.