Changeset 68

Show
Ignore:
Timestamp:
04/08/09 23:35:18 (16 months ago)
Author:
eferro
Message:

Adaptations to use oui package. Ref #23

Location:
ethervendors
Files:
2 removed
9 modified

Legend:

Unmodified
Added
Removed
  • ethervendors/bin/ethervendor

    r42 r68  
    99 
    1010 
    11 MAC_ID_FILE="/usr/share/misc/ethervendors.ids" 
     11OUI_FILE="/usr/share/oui/oui.txt" 
    1212 
    1313 
     
    2020                      dest='ouifile',  
    2121                      action='store',  
    22                       default=MAC_ID_FILE, 
    23                       help='IEEE OUI and Company_id Assignments file, default "%s"' % MAC_ID_FILE) 
     22                      default=OUI_FILE, 
     23                      help='IEEE OUI and Company_id Assignments file, default "%s"' % OUI_FILE) 
    2424 
    2525 
     
    3030def no_mac_file(): 
    3131    print "Error reading %s or file not found" % options.ouifile 
    32     print "Use update-ethervendors to create it"     
     32    print "Use update-oui to create it"     
    3333 
    3434def normalize_mac(mac): 
  • ethervendors/bin/ethervendorids

    r42 r68  
    1010 
    1111 
    12 MAC_ID_FILE="/usr/share/misc/ethervendors.ids" 
    13  
     12OUI_FILE="/usr/share/oui/oui.txt" 
    1413 
    1514opt_parser=OptionParser(usage="Usage: %prog vendor [options]", 
     
    2423                      dest='ouifile',  
    2524                      action='store',  
    26                       default=MAC_ID_FILE, 
    27                       help='IEEE OUI and Company_id Assignments file, default "%s"' % MAC_ID_FILE) 
     25                      default=OUI_FILE, 
     26                      help='IEEE OUI and Company_id Assignments file, default "%s"' % OUI_FILE) 
    2827 
    2928 
     
    3433def no_mac_file(): 
    3534    print "Error reading %s or file not found" % options.ouifile 
    36     print "Use update-ethervendor to create it"     
     35    print "Use update-oui to create it"     
    3736 
    3837def extract_vendor(line): 
  • ethervendors/bin/ethervendorsfind

    r42 r68  
    99from optparse import OptionParser 
    1010 
    11  
    12 ETHERVENDORS_FILE="/usr/share/misc/ethervendors.ids" 
     11OUI_FILE="/usr/share/oui/oui.txt" 
    1312 
    1413 
     
    2120                      dest='ouifile',  
    2221                      action='store',  
    23                       default=ETHERVENDORS_FILE, 
    24                       help='IEEE OUI and Company_id Assignments file, default "%s"' % ETHERVENDORS_FILE) 
     22                      default=OUI_FILE, 
     23                      help='IEEE OUI and Company_id Assignments file, default "%s"' % OUI_FILE) 
    2524 
    2625(options, args)=opt_parser.parse_args() 
     
    2827def no_mac_file(): 
    2928    print "Error reading %s or file not found" % options.ouifile 
    30     print "Use update-ethervendors to create it"     
     29    print "Use update-oui to create it"     
    3130 
    3231def extract_vendor(line): 
  • ethervendors/debian/changelog

    r48 r68  
    1 ethervendors (1.0.0-1) UNRELEASED; urgency=low 
     1ethervendors (1.0.0-2) unstable; urgency=low 
     2 
     3  * Remove update script and added dep over oui to avoid duplication 
     4 
     5 -- Eduardo Ferro <eferro@alea-soluciones.com>  Thu, 09 Apr 2009 00:26:26 +0200 
     6 
     7ethervendors (1.0.0-1) unstable; urgency=low 
    28 
    39  * Initial release. (Closes: #522642) 
  • ethervendors/debian/control

    r48 r68  
    99Package: ethervendors 
    1010Architecture: all 
    11 Depends: ${shlibs:Depends}, python 
     11Depends: ${shlibs:Depends}, python, oui 
    1212Description: Ehernet Vendor utils 
    1313 Simple  Ehernet Vendor ids utilities. Includes programs for lookup the  
  • ethervendors/debian/manpages

    r43 r68  
    22doc/ethervendorids.1 
    33doc/ethervendor.1 
    4 doc/update-ethervendor.1 
     4 
  • ethervendors/doc/ethervendor.1

    r43 r68  
    3333There is NO WARRANTY, to the extent permitted by law. 
    3434.SH "SEE ALSO" 
    35 ethervendorsfind(1)  ethervendors(1)  update-ethervendor(1) 
     35ethervendorsfind(1)  ethervendors(1)  update-oui(8) 
  • ethervendors/doc/ethervendorids.1

    r43 r68  
    3434There is NO WARRANTY, to the extent permitted by law. 
    3535.SH "SEE ALSO" 
    36 ethervendor(1)  ethervendorsfind(1)  update-ethervendor(1) 
     36ethervendor(1)  ethervendorsfind(1)  update-oui(8) 
  • ethervendors/doc/ethervendorsfind.1

    r43 r68  
    3333There is NO WARRANTY, to the extent permitted by law. 
    3434.SH "SEE ALSO" 
    35 ethervendor(1)  ethervendors(1)  update-ethervendor(1) 
     35ethervendor(1)  ethervendors(1)  update-oui(8) 
    3636