From 9fca35192e99da237e51c70f3b52f833be44877f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 27 Aug 2005 00:51:25 +0000 Subject: * add the beginning of a service type data base git-svn-id: file:///home/lennart/svn/public/avahi/trunk@451 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- service-type-database/build-db | 41 ++++++++++++++++++++++ service-type-database/service-types | 68 +++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100755 service-type-database/build-db create mode 100644 service-type-database/service-types diff --git a/service-type-database/build-db b/service-type-database/build-db new file mode 100755 index 0000000..1cc7309 --- /dev/null +++ b/service-type-database/build-db @@ -0,0 +1,41 @@ +#!/usr/bin/python + +# $Id$ + +# This file is part of avahi. +# +# avahi is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# avahi is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +# License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with avahi; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +import dbm, sys + +if len(sys.argv) > 1: + fn = sys.argv[1] +else: + fn = "service-types" + +db = dbm.open(fn, "n") + +for ln in file(fn, "r"): + ln = ln.strip(" \r\n\t") + + if ln == "" or ln.startswith("#"): + continue + + t, n = ln.split(":", 1) + + db[t.strip()] = n.strip() + +db.close() diff --git a/service-type-database/service-types b/service-type-database/service-types new file mode 100644 index 0000000..464c514 --- /dev/null +++ b/service-type-database/service-types @@ -0,0 +1,68 @@ +# $Id$ + +# This file is part of avahi. +# +# avahi is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# avahi is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +# License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with avahi; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +# Feel free to add more service types or translatons to this database. +# Please refrain from copying bulk service type data from any publicly +# available database unless its license is known and compatible with +# our project! The database available on +# +# http://www.dns-sd.org/ServiceTypes.html +# +# is not a source that complies with the criterion! + +_http._tcp:Web Service +_http._tcp[de]:Web Dienst + +_https._tcp:Secure Web Service +_https._tcpi[de]:Sicherer Web Dienst + +_ftp._tcp:FTP File Transfer +_ftp._tcp[de]:FTP Dateifreigabe + +# UDP? +_h323._tcp:H.323 Telephony +_h323._tcp[de]:H.323 Telefonie + +# UDP? +_sip._tcp:SIP Telephony +_sip._tcp[de]:SIP Telefonie + +_ssh._tcp:SSH Remote Terminal +_ssh._tcp[de]:SSH Fernzugriff + +_distcc._tcp:Distributed Compiler +_distcc._tcp[de]:Verteilter Compiler + +_daap._tcp:iTunes Audio Access +_daap._tcp[de]:iTunes Audio-Zugriff + +_domain._udp:DNS Server +_domain._udp[de]: DNS Dienst + +_imap._tcp:IMAP Mail Access + +_pop3._tcp:POP3 Mail Access + +_rfb._tcp:VNC Remote Frambuffer + +_sftp-ssh._tcp:SFTP File Transfer + +_telnet._tcp:Telnet Remote Terminal + +_presence._tcp:iChat Presence -- cgit