Date: Tue, 23 Feb 2010 09:58:12 +0000 (UTC) From: Ermal Luçi <eri@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r204245 - in user/eri/pf45/head: contrib/csup etc/devd etc/rc.d lib/libarchive lib/libarchive/test lib/libc/gen lib/libc/mips/gen/hardfloat lib/libc/stdlib lib/libefi lib/libgpib lib/li... Message-ID: <201002230958.o1N9wC13029774@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eri Date: Tue Feb 23 09:58:12 2010 New Revision: 204245 URL: http://svn.freebsd.org/changeset/base/204245 Log: Add files that I missed during MFH. Added: user/eri/pf45/head/contrib/csup/auth.c user/eri/pf45/head/contrib/csup/auth.h user/eri/pf45/head/contrib/csup/cpasswd.1 user/eri/pf45/head/contrib/csup/cpasswd.sh (contents, props changed) user/eri/pf45/head/etc/devd/uath.conf user/eri/pf45/head/etc/rc.d/rtsold (contents, props changed) user/eri/pf45/head/lib/libarchive/archive_crc32.h user/eri/pf45/head/lib/libarchive/archive_entry_xattr.c user/eri/pf45/head/lib/libarchive/archive_hash.h user/eri/pf45/head/lib/libarchive/archive_read_support_compression_uu.c user/eri/pf45/head/lib/libarchive/archive_write_set_format_zip.c user/eri/pf45/head/lib/libarchive/test/test_compat_cpio.c user/eri/pf45/head/lib/libarchive/test/test_compat_cpio_1.cpio.uu user/eri/pf45/head/lib/libarchive/test/test_compat_lzma.c user/eri/pf45/head/lib/libarchive/test/test_compat_lzma_1.tlz.uu user/eri/pf45/head/lib/libarchive/test/test_compat_lzma_2.tlz.uu user/eri/pf45/head/lib/libarchive/test/test_compat_lzma_3.tlz.uu user/eri/pf45/head/lib/libarchive/test/test_fuzz_1.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_ar.ar.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_cpio_bin_lzma.c user/eri/pf45/head/lib/libarchive/test/test_read_format_iso.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_joliet.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_joliet_long.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_joliet_rockridge.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_multi_extent.c user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_multi_extent.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_rockridge.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_rockridge_ce.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_rockridge_new.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_rockridge_rr_moved.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_iso_zisofs.iso.Z.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_isojoliet_long.c user/eri/pf45/head/lib/libarchive/test/test_read_format_isojoliet_rr.c user/eri/pf45/head/lib/libarchive/test/test_read_format_isorr_ce.c user/eri/pf45/head/lib/libarchive/test/test_read_format_isorr_new_bz2.c user/eri/pf45/head/lib/libarchive/test/test_read_format_isorr_rr_moved.c user/eri/pf45/head/lib/libarchive/test/test_read_format_isozisofs_bz2.c user/eri/pf45/head/lib/libarchive/test/test_read_format_mtree.mtree.uu user/eri/pf45/head/lib/libarchive/test/test_read_format_tlz.c user/eri/pf45/head/lib/libarchive/test/test_read_uu.c user/eri/pf45/head/lib/libarchive/test/test_write_disk_symlink.c user/eri/pf45/head/lib/libarchive/test/test_write_format_zip.c user/eri/pf45/head/lib/libarchive/test/test_write_format_zip_empty.c user/eri/pf45/head/lib/libarchive/test/test_write_format_zip_no_compression.c user/eri/pf45/head/lib/libc/gen/getutxent.3 user/eri/pf45/head/lib/libc/gen/getutxent.c user/eri/pf45/head/lib/libc/gen/pututxline.c user/eri/pf45/head/lib/libc/gen/sem_new.c user/eri/pf45/head/lib/libc/gen/utxdb.c user/eri/pf45/head/lib/libc/gen/utxdb.h user/eri/pf45/head/lib/libc/mips/gen/hardfloat/ user/eri/pf45/head/lib/libc/mips/gen/hardfloat/fpgetmask.c user/eri/pf45/head/lib/libc/mips/gen/hardfloat/fpgetround.c user/eri/pf45/head/lib/libc/mips/gen/hardfloat/fpgetsticky.c user/eri/pf45/head/lib/libc/mips/gen/hardfloat/fpsetmask.c user/eri/pf45/head/lib/libc/mips/gen/hardfloat/fpsetround.c user/eri/pf45/head/lib/libc/mips/gen/hardfloat/fpsetsticky.c user/eri/pf45/head/lib/libc/stdlib/ql.h user/eri/pf45/head/lib/libc/stdlib/qr.h user/eri/pf45/head/lib/libefi/ user/eri/pf45/head/lib/libefi/Makefile user/eri/pf45/head/lib/libefi/efi_getvar.c user/eri/pf45/head/lib/libefi/efi_nextvarname.c user/eri/pf45/head/lib/libefi/efi_setvar.c user/eri/pf45/head/lib/libefi/libefi.3 user/eri/pf45/head/lib/libefi/libefi.c user/eri/pf45/head/lib/libefi/libefi.h user/eri/pf45/head/lib/libefi/libefi_int.h user/eri/pf45/head/lib/libgpib/gpib.3 user/eri/pf45/head/lib/libpmc/pmc.xscale.3 user/eri/pf45/head/share/doc/usd/05.dc/ user/eri/pf45/head/share/doc/usd/05.dc/Makefile user/eri/pf45/head/share/doc/usd/06.bc/ user/eri/pf45/head/share/doc/usd/06.bc/Makefile user/eri/pf45/head/share/man/man3/pthread_affinity_np.3 user/eri/pf45/head/share/man/man3/pthread_attr_affinity_np.3 user/eri/pf45/head/share/man/man4/alpm.4 user/eri/pf45/head/share/man/man4/amdpm.4 user/eri/pf45/head/share/man/man4/gpib.4 user/eri/pf45/head/share/man/man4/ipwfw.4 user/eri/pf45/head/share/man/man4/iwifw.4 user/eri/pf45/head/share/man/man4/mcd.4 user/eri/pf45/head/share/man/man4/mk48txx.4 user/eri/pf45/head/share/man/man4/nvram.4 user/eri/pf45/head/share/man/man4/padlock.4 user/eri/pf45/head/share/man/man4/pcf.4 user/eri/pf45/head/share/man/man4/pcii.4 user/eri/pf45/head/share/man/man4/run.4 user/eri/pf45/head/share/man/man4/scd.4 user/eri/pf45/head/share/man/man4/siba.4 user/eri/pf45/head/share/man/man4/tnt4882.4 user/eri/pf45/head/share/man/man4/uhso.4 user/eri/pf45/head/share/man/man4/viapm.4 user/eri/pf45/head/sys/arm/arm/cpufunc_asm_fa526.S user/eri/pf45/head/sys/arm/econa/ user/eri/pf45/head/sys/arm/econa/cfi_bus_econa.c user/eri/pf45/head/sys/arm/econa/econa.c user/eri/pf45/head/sys/arm/econa/econa_machdep.c user/eri/pf45/head/sys/arm/econa/econa_reg.h user/eri/pf45/head/sys/arm/econa/econa_var.h user/eri/pf45/head/sys/arm/econa/ehci_ebus.c user/eri/pf45/head/sys/arm/econa/files.econa user/eri/pf45/head/sys/arm/econa/if_ece.c user/eri/pf45/head/sys/arm/econa/if_ecereg.h user/eri/pf45/head/sys/arm/econa/if_ecevar.h user/eri/pf45/head/sys/arm/econa/ohci_ec.c user/eri/pf45/head/sys/arm/econa/std.econa user/eri/pf45/head/sys/arm/econa/timer.c user/eri/pf45/head/sys/arm/econa/uart_bus_ec.c user/eri/pf45/head/sys/arm/econa/uart_cpu_ec.c user/eri/pf45/head/sys/boot/common/md.c user/eri/pf45/head/sys/boot/efi/libefi/efipart.c user/eri/pf45/head/sys/boot/pc98/boot2/boot1.S user/eri/pf45/head/sys/boot/pc98/boot2/boot2.c user/eri/pf45/head/sys/boot/pc98/libpc98/libpc98.h user/eri/pf45/head/sys/boot/pc98/libpc98/pc98_sys.c user/eri/pf45/head/sys/conf/ldscript.mips.mips64 user/eri/pf45/head/sys/conf/ldscript.mips.octeon1.32 user/eri/pf45/head/sys/conf/ldscript.mips.octeon1.64 user/eri/pf45/head/sys/conf/ldscript.mips.octeon1.n32 user/eri/pf45/head/sys/contrib/dev/iwn/iwlwifi-1000-128.50.3.1.fw.uu user/eri/pf45/head/sys/contrib/dev/iwn/iwlwifi-4965-228.61.2.24.fw.uu user/eri/pf45/head/sys/contrib/dev/iwn/iwlwifi-5000-8.24.2.12.fw.uu user/eri/pf45/head/sys/contrib/dev/iwn/iwlwifi-6000-9.176.4.1.fw.uu user/eri/pf45/head/sys/contrib/dev/run/ user/eri/pf45/head/sys/contrib/dev/run/LICENSE user/eri/pf45/head/sys/contrib/dev/run/rt2870.fw.uu user/eri/pf45/head/sys/dev/ath/ath_hal/ar5416/ar9285.ini user/eri/pf45/head/sys/dev/ath/ath_hal/ar5416/ar9285v2.ini user/eri/pf45/head/sys/dev/cfe/cfe_env.c user/eri/pf45/head/sys/dev/drm/drm_hashtab.c user/eri/pf45/head/sys/dev/drm/drm_hashtab.h user/eri/pf45/head/sys/dev/drm/drm_mm.c user/eri/pf45/head/sys/dev/drm/drm_mm.h user/eri/pf45/head/sys/dev/drm/drm_sman.c user/eri/pf45/head/sys/dev/drm/drm_sman.h user/eri/pf45/head/sys/dev/drm/via_3d_reg.h user/eri/pf45/head/sys/dev/drm/via_dma.c user/eri/pf45/head/sys/dev/drm/via_dmablit.c user/eri/pf45/head/sys/dev/drm/via_dmablit.h user/eri/pf45/head/sys/dev/drm/via_drm.h user/eri/pf45/head/sys/dev/drm/via_drv.c user/eri/pf45/head/sys/dev/drm/via_drv.h user/eri/pf45/head/sys/dev/drm/via_irq.c user/eri/pf45/head/sys/dev/drm/via_map.c user/eri/pf45/head/sys/dev/drm/via_mm.c user/eri/pf45/head/sys/dev/drm/via_verifier.c user/eri/pf45/head/sys/dev/drm/via_verifier.h user/eri/pf45/head/sys/dev/drm/via_video.c user/eri/pf45/head/sys/dev/flash/mx25l.c user/eri/pf45/head/sys/dev/flash/mx25lreg.h user/eri/pf45/head/sys/dev/hwpmc/hwpmc_xscale.c user/eri/pf45/head/sys/dev/hwpmc/hwpmc_xscale.h user/eri/pf45/head/sys/dev/ieee488/tnt4882.h user/eri/pf45/head/sys/dev/siba/siba_bwn.c user/eri/pf45/head/sys/dev/siba/siba_cc.c user/eri/pf45/head/sys/dev/siba/siba_core.c user/eri/pf45/head/sys/dev/usb/net/uhso.c user/eri/pf45/head/sys/dev/usb/wlan/if_run.c user/eri/pf45/head/sys/dev/usb/wlan/if_runreg.h user/eri/pf45/head/sys/dev/usb/wlan/if_runvar.h user/eri/pf45/head/sys/fs/ext2fs/ user/eri/pf45/head/sys/fs/ext2fs/ext2_alloc.c user/eri/pf45/head/sys/fs/ext2fs/ext2_balloc.c user/eri/pf45/head/sys/fs/ext2fs/ext2_bmap.c user/eri/pf45/head/sys/fs/ext2fs/ext2_dinode.h (contents, props changed) user/eri/pf45/head/sys/fs/ext2fs/ext2_dir.h (contents, props changed) user/eri/pf45/head/sys/fs/ext2fs/ext2_extern.h user/eri/pf45/head/sys/fs/ext2fs/ext2_inode.c user/eri/pf45/head/sys/fs/ext2fs/ext2_inode_cnv.c user/eri/pf45/head/sys/fs/ext2fs/ext2_lookup.c user/eri/pf45/head/sys/fs/ext2fs/ext2_mount.h user/eri/pf45/head/sys/fs/ext2fs/ext2_readwrite.c user/eri/pf45/head/sys/fs/ext2fs/ext2_subr.c user/eri/pf45/head/sys/fs/ext2fs/ext2_vfsops.c user/eri/pf45/head/sys/fs/ext2fs/ext2_vnops.c user/eri/pf45/head/sys/fs/ext2fs/ext2fs.h (contents, props changed) user/eri/pf45/head/sys/fs/ext2fs/fs.h user/eri/pf45/head/sys/fs/ext2fs/inode.h user/eri/pf45/head/sys/geom/mountver/ user/eri/pf45/head/sys/geom/mountver/g_mountver.c user/eri/pf45/head/sys/geom/mountver/g_mountver.h user/eri/pf45/head/sys/ia64/ia64/bus_machdep.c user/eri/pf45/head/sys/ia64/ia64/iodev_machdep.c user/eri/pf45/head/sys/ia64/include/iodev.h user/eri/pf45/head/sys/mips/alchemy/ user/eri/pf45/head/sys/mips/alchemy/alchemy_machdep.c user/eri/pf45/head/sys/mips/alchemy/aureg.h user/eri/pf45/head/sys/mips/alchemy/files.alchemy user/eri/pf45/head/sys/mips/alchemy/obio.c user/eri/pf45/head/sys/mips/alchemy/std.alchemy user/eri/pf45/head/sys/mips/alchemy/uart_bus_alchemy.c user/eri/pf45/head/sys/mips/alchemy/uart_cpu_alchemy.c user/eri/pf45/head/sys/mips/atheros/ user/eri/pf45/head/sys/mips/atheros/apb.c user/eri/pf45/head/sys/mips/atheros/apbvar.h user/eri/pf45/head/sys/mips/atheros/ar71xx_bus_space_reversed.c user/eri/pf45/head/sys/mips/atheros/ar71xx_bus_space_reversed.h user/eri/pf45/head/sys/mips/atheros/ar71xx_ehci.c user/eri/pf45/head/sys/mips/atheros/ar71xx_machdep.c user/eri/pf45/head/sys/mips/atheros/ar71xx_ohci.c user/eri/pf45/head/sys/mips/atheros/ar71xx_pci.c user/eri/pf45/head/sys/mips/atheros/ar71xx_pci_bus_space.c user/eri/pf45/head/sys/mips/atheros/ar71xx_pci_bus_space.h user/eri/pf45/head/sys/mips/atheros/ar71xx_spi.c user/eri/pf45/head/sys/mips/atheros/ar71xx_wdog.c user/eri/pf45/head/sys/mips/atheros/ar71xxreg.h user/eri/pf45/head/sys/mips/atheros/files.ar71xx user/eri/pf45/head/sys/mips/atheros/if_arge.c user/eri/pf45/head/sys/mips/atheros/if_argevar.h user/eri/pf45/head/sys/mips/atheros/pcf2123_rtc.c user/eri/pf45/head/sys/mips/atheros/pcf2123reg.h user/eri/pf45/head/sys/mips/atheros/uart_bus_ar71xx.c user/eri/pf45/head/sys/mips/atheros/uart_cpu_ar71xx.c user/eri/pf45/head/sys/mips/cavium/ user/eri/pf45/head/sys/mips/cavium/asm_octeon.S user/eri/pf45/head/sys/mips/cavium/dev/ user/eri/pf45/head/sys/mips/cavium/dev/rgmii/ user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_fau.c user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_fau.h user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_fpa.c user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_fpa.h user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_ipd.c user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_ipd.h user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_pip.h user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_pko.c user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_pko.h user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_rgmx.c user/eri/pf45/head/sys/mips/cavium/dev/rgmii/octeon_rgmx.h user/eri/pf45/head/sys/mips/cavium/driveid.h user/eri/pf45/head/sys/mips/cavium/files.octeon1 user/eri/pf45/head/sys/mips/cavium/obio.c user/eri/pf45/head/sys/mips/cavium/obiovar.h user/eri/pf45/head/sys/mips/cavium/octeon_ebt3000_cf.c user/eri/pf45/head/sys/mips/cavium/octeon_ebt3000_cf.h user/eri/pf45/head/sys/mips/cavium/octeon_machdep.c user/eri/pf45/head/sys/mips/cavium/octeon_pcmap_regs.h user/eri/pf45/head/sys/mips/cavium/std.octeon1 user/eri/pf45/head/sys/mips/cavium/uart_bus_octeonusart.c user/eri/pf45/head/sys/mips/cavium/uart_cpu_octeonusart.c user/eri/pf45/head/sys/mips/cavium/uart_dev_oct16550.c user/eri/pf45/head/sys/mips/include/cdefs.h user/eri/pf45/head/sys/mips/include/fls64.h user/eri/pf45/head/sys/mips/mips/bus_space_generic.c user/eri/pf45/head/sys/mips/mips/elf_trampoline.c user/eri/pf45/head/sys/mips/mips/inckern.S user/eri/pf45/head/sys/mips/mips/mpboot.S user/eri/pf45/head/sys/mips/mips/ptrace_machdep.c user/eri/pf45/head/sys/mips/mips/sys_machdep.c user/eri/pf45/head/sys/mips/rmi/ user/eri/pf45/head/sys/mips/rmi/Makefile.msgring user/eri/pf45/head/sys/mips/rmi/board.c user/eri/pf45/head/sys/mips/rmi/board.h user/eri/pf45/head/sys/mips/rmi/bus_space_rmi.c user/eri/pf45/head/sys/mips/rmi/clock.c user/eri/pf45/head/sys/mips/rmi/clock.h user/eri/pf45/head/sys/mips/rmi/debug.h (contents, props changed) user/eri/pf45/head/sys/mips/rmi/dev/ user/eri/pf45/head/sys/mips/rmi/dev/sec/ user/eri/pf45/head/sys/mips/rmi/dev/sec/desc.h (contents, props changed) user/eri/pf45/head/sys/mips/rmi/dev/sec/rmilib.c user/eri/pf45/head/sys/mips/rmi/dev/sec/rmilib.h user/eri/pf45/head/sys/mips/rmi/dev/sec/rmisec.c user/eri/pf45/head/sys/mips/rmi/dev/sec/stats.h user/eri/pf45/head/sys/mips/rmi/dev/xlr/ user/eri/pf45/head/sys/mips/rmi/dev/xlr/atx_cpld.h user/eri/pf45/head/sys/mips/rmi/dev/xlr/rge.c user/eri/pf45/head/sys/mips/rmi/dev/xlr/rge.h user/eri/pf45/head/sys/mips/rmi/dev/xlr/xgmac_mdio.h user/eri/pf45/head/sys/mips/rmi/ehcireg.h user/eri/pf45/head/sys/mips/rmi/ehcivar.h user/eri/pf45/head/sys/mips/rmi/files.xlr user/eri/pf45/head/sys/mips/rmi/interrupt.h user/eri/pf45/head/sys/mips/rmi/intr_machdep.c user/eri/pf45/head/sys/mips/rmi/iodi.c user/eri/pf45/head/sys/mips/rmi/iomap.h user/eri/pf45/head/sys/mips/rmi/msgring.c user/eri/pf45/head/sys/mips/rmi/msgring.cfg user/eri/pf45/head/sys/mips/rmi/msgring.h (contents, props changed) user/eri/pf45/head/sys/mips/rmi/msgring_xls.c user/eri/pf45/head/sys/mips/rmi/msgring_xls.cfg (contents, props changed) user/eri/pf45/head/sys/mips/rmi/on_chip.c user/eri/pf45/head/sys/mips/rmi/pcibus.c user/eri/pf45/head/sys/mips/rmi/pcibus.h user/eri/pf45/head/sys/mips/rmi/perfmon.h user/eri/pf45/head/sys/mips/rmi/perfmon_kern.c user/eri/pf45/head/sys/mips/rmi/perfmon_percpu.c user/eri/pf45/head/sys/mips/rmi/perfmon_utils.h user/eri/pf45/head/sys/mips/rmi/perfmon_xlrconfig.h user/eri/pf45/head/sys/mips/rmi/pic.h user/eri/pf45/head/sys/mips/rmi/rmi_mips_exts.h user/eri/pf45/head/sys/mips/rmi/rootfs_list.txt user/eri/pf45/head/sys/mips/rmi/shared_structs.h (contents, props changed) user/eri/pf45/head/sys/mips/rmi/shared_structs_func.h (contents, props changed) user/eri/pf45/head/sys/mips/rmi/shared_structs_offsets.h (contents, props changed) user/eri/pf45/head/sys/mips/rmi/std.xlr user/eri/pf45/head/sys/mips/rmi/tick.c user/eri/pf45/head/sys/mips/rmi/uart_bus_xlr_iodi.c user/eri/pf45/head/sys/mips/rmi/uart_cpu_mips_xlr.c user/eri/pf45/head/sys/mips/rmi/xlr_boot1_console.c user/eri/pf45/head/sys/mips/rmi/xlr_csum_nocopy.S user/eri/pf45/head/sys/mips/rmi/xlr_i2c.c user/eri/pf45/head/sys/mips/rmi/xlr_machdep.c user/eri/pf45/head/sys/mips/rmi/xlr_pci.c user/eri/pf45/head/sys/mips/rmi/xlrconfig.h user/eri/pf45/head/sys/mips/rmi/xls_ehci.c user/eri/pf45/head/sys/mips/sibyte/ user/eri/pf45/head/sys/mips/sibyte/ata_zbbus.c user/eri/pf45/head/sys/mips/sibyte/files.sibyte user/eri/pf45/head/sys/mips/sibyte/sb_asm.S user/eri/pf45/head/sys/mips/sibyte/sb_machdep.c user/eri/pf45/head/sys/mips/sibyte/sb_scd.c user/eri/pf45/head/sys/mips/sibyte/sb_scd.h user/eri/pf45/head/sys/mips/sibyte/sb_zbbus.c user/eri/pf45/head/sys/mips/sibyte/sb_zbpci.c user/eri/pf45/head/sys/modules/drm/via/ user/eri/pf45/head/sys/modules/drm/via/Makefile user/eri/pf45/head/sys/modules/epic/ user/eri/pf45/head/sys/modules/epic/Makefile user/eri/pf45/head/sys/modules/geom/geom_mountver/ user/eri/pf45/head/sys/modules/geom/geom_mountver/Makefile user/eri/pf45/head/sys/modules/iwnfw/iwn1000/ user/eri/pf45/head/sys/modules/iwnfw/iwn1000/Makefile user/eri/pf45/head/sys/modules/iwnfw/iwn6000/ user/eri/pf45/head/sys/modules/iwnfw/iwn6000/Makefile user/eri/pf45/head/sys/modules/pfsync/opt_global.h user/eri/pf45/head/sys/modules/runfw/ user/eri/pf45/head/sys/modules/runfw/Makefile user/eri/pf45/head/sys/modules/siba_bwn/ user/eri/pf45/head/sys/modules/siba_bwn/Makefile user/eri/pf45/head/sys/modules/usb/run/ user/eri/pf45/head/sys/modules/usb/run/Makefile user/eri/pf45/head/sys/modules/usb/uhso/ user/eri/pf45/head/sys/modules/usb/uhso/Makefile user/eri/pf45/head/sys/netinet/ipfw/ip_fw_dynamic.c user/eri/pf45/head/sys/netinet/ipfw/ip_fw_log.c user/eri/pf45/head/sys/netinet/ipfw/ip_fw_private.h user/eri/pf45/head/sys/netinet/ipfw/ip_fw_sockopt.c user/eri/pf45/head/sys/netinet/ipfw/ip_fw_table.c user/eri/pf45/head/sys/sparc64/ebus/epic.c user/eri/pf45/head/sys/sparc64/pci/fire.c user/eri/pf45/head/sys/sparc64/pci/firereg.h user/eri/pf45/head/sys/sparc64/pci/firevar.h user/eri/pf45/head/sys/sys/_umtx.h user/eri/pf45/head/tools/regression/bin/sh/parameters/mail1.0 user/eri/pf45/head/tools/regression/bin/sh/parameters/mail2.0 user/eri/pf45/head/usr.bin/ee/nls/pt_BR.ISO8859-1/ user/eri/pf45/head/usr.bin/ee/nls/pt_BR.ISO8859-1/ee.msg user/eri/pf45/head/usr.bin/tar/err.c user/eri/pf45/head/usr.bin/tar/err.h user/eri/pf45/head/usr.bin/tar/line_reader.c user/eri/pf45/head/usr.bin/tar/line_reader.h user/eri/pf45/head/usr.bin/tar/matching.h user/eri/pf45/head/usr.bin/tar/pathmatch.c user/eri/pf45/head/usr.bin/tar/pathmatch.h user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_annotate.c user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_annotate.h user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_callgraph.c user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_callgraph.h user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_calltree.c user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_calltree.h user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_gprof.c user/eri/pf45/head/usr.sbin/pmcstat/pmcpl_gprof.h user/eri/pf45/head/usr.sbin/pmcstat/pmcstat_log.h user/eri/pf45/head/usr.sbin/pmcstat/pmcstat_top.h user/eri/pf45/head/usr.sbin/service/ user/eri/pf45/head/usr.sbin/service/Makefile user/eri/pf45/head/usr.sbin/service/service.8 user/eri/pf45/head/usr.sbin/service/service.sh (contents, props changed) user/eri/pf45/head/usr.sbin/traceroute/findsaddr-udp.c user/eri/pf45/head/usr.sbin/uhsoctl/ user/eri/pf45/head/usr.sbin/uhsoctl/Makefile user/eri/pf45/head/usr.sbin/uhsoctl/uhsoctl.1 user/eri/pf45/head/usr.sbin/uhsoctl/uhsoctl.c Added: user/eri/pf45/head/contrib/csup/auth.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/contrib/csup/auth.c Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,331 @@ +/*- + * Copyright (c) 2003-2007, Petar Zhivkov Petrov <pesho.petrov@gmail.com> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD: user/eri/pf45/head/contrib/csup/auth.c 203368 2010-02-02 05:57:42Z lulf $ + */ + +#include <sys/param.h> +#include <sys/socket.h> +#include <sys/time.h> +#include <sys/types.h> + +#include <arpa/inet.h> +#include <netinet/in.h> + +#include <ctype.h> +#include <openssl/md5.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "auth.h" +#include "config.h" +#include "misc.h" +#include "proto.h" +#include "stream.h" + +#define MD5_BYTES 16 + +/* This should be at least 2 * MD5_BYTES + 6 (length of "$md5$" + 1) */ +#define MD5_CHARS_MAX (2*(MD5_BYTES)+6) + +struct srvrecord { + char server[MAXHOSTNAMELEN]; + char client[256]; + char password[256]; +}; + +static int auth_domd5auth(struct config *); +static int auth_lookuprecord(char *, struct srvrecord *); +static int auth_parsetoken(char **, char *, int); +static void auth_makesecret(struct srvrecord *, char *); +static void auth_makeresponse(char *, char *, char *); +static void auth_readablesum(unsigned char *, char *); +static void auth_makechallenge(struct config *, char *); +static int auth_checkresponse(char *, char *, char *); + +int auth_login(struct config *config) +{ + struct stream *s; + char hostbuf[MAXHOSTNAMELEN]; + char *login, *host; + int error; + + s = config->server; + error = gethostname(hostbuf, sizeof(hostbuf)); + hostbuf[sizeof(hostbuf) - 1] = '\0'; + if (error) + host = NULL; + else + host = hostbuf; + login = getlogin(); + proto_printf(s, "USER %s %s\n", login != NULL ? login : "?", + host != NULL ? host : "?"); + stream_flush(s); + error = auth_domd5auth(config); + return (error); +} + +static int +auth_domd5auth(struct config *config) +{ + struct stream *s; + char *line, *cmd, *challenge, *realm, *client, *srvresponse, *msg; + char shrdsecret[MD5_CHARS_MAX], response[MD5_CHARS_MAX]; + char clichallenge[MD5_CHARS_MAX]; + struct srvrecord auth; + int error; + + lprintf(2, "MD5 authentication started\n"); + s = config->server; + line = stream_getln(s, NULL); + cmd = proto_get_ascii(&line); + realm = proto_get_ascii(&line); + challenge = proto_get_ascii(&line); + if (challenge == NULL || + line != NULL || + (strcmp(cmd, "AUTHMD5") != 0)) { + lprintf(-1, "Invalid server reply to USER\n"); + return (STATUS_FAILURE); + } + + client = NULL; + response[0] = clichallenge[0] = '.'; + response[1] = clichallenge[1] = 0; + if (config->reqauth || (strcmp(challenge, ".") != 0)) { + if (strcmp(realm, ".") == 0) { + lprintf(-1, "Authentication required, but not enabled on server\n"); + return (STATUS_FAILURE); + } + error = auth_lookuprecord(realm, &auth); + if (error != STATUS_SUCCESS) + return (error); + client = auth.client; + auth_makesecret(&auth, shrdsecret); + } + + if (strcmp(challenge, ".") != 0) + auth_makeresponse(challenge, shrdsecret, response); + if (config->reqauth) + auth_makechallenge(config, clichallenge); + proto_printf(s, "AUTHMD5 %s %s %s\n", + client == NULL ? "." : client, response, clichallenge); + stream_flush(s); + line = stream_getln(s, NULL); + cmd = proto_get_ascii(&line); + if (cmd == NULL || line == NULL) + goto bad; + if (strcmp(cmd, "OK") == 0) { + srvresponse = proto_get_ascii(&line); + if (srvresponse == NULL) + goto bad; + if (config->reqauth && + !auth_checkresponse(srvresponse, clichallenge, shrdsecret)) { + lprintf(-1, "Server failed to authenticate itself to client\n"); + return (STATUS_FAILURE); + } + lprintf(2, "MD5 authentication successfull\n"); + return (STATUS_SUCCESS); + } + if (strcmp(cmd, "!") == 0) { + msg = proto_get_rest(&line); + if (msg == NULL) + goto bad; + lprintf(-1, "Server error: %s\n", msg); + return (STATUS_FAILURE); + } +bad: + lprintf(-1, "Invalid server reply to AUTHMD5\n"); + return (STATUS_FAILURE); +} + +static int +auth_lookuprecord(char *server, struct srvrecord *auth) +{ + char *home, *line, authfile[FILENAME_MAX]; + struct stream *s; + int linenum = 0, error; + + home = getenv("HOME"); + if (home == NULL) { + lprintf(-1, "Environment variable \"HOME\" is not set\n"); + return (STATUS_FAILURE); + } + snprintf(authfile, sizeof(authfile), "%s/%s", home, AUTHFILE); + s = stream_open_file(authfile, O_RDONLY); + if (s == NULL) { + lprintf(-1, "Could not open file %s\n", authfile); + return (STATUS_FAILURE); + } + + while ((line = stream_getln(s, NULL)) != NULL) { + linenum++; + if (line[0] == '#' || line[0] == '\0') + continue; + error = auth_parsetoken(&line, auth->server, + sizeof(auth->server)); + if (error != STATUS_SUCCESS) { + lprintf(-1, "%s:%d Missng client name\n", authfile, linenum); + goto close; + } + /* Skip the rest of this line, it isn't what we are looking for. */ + if (strcmp(auth->server, server) != 0) + continue; + error = auth_parsetoken(&line, auth->client, + sizeof(auth->client)); + if (error != STATUS_SUCCESS) { + lprintf(-1, "%s:%d Missng password\n", authfile, linenum); + goto close; + } + error = auth_parsetoken(&line, auth->password, + sizeof(auth->password)); + if (error != STATUS_SUCCESS) { + lprintf(-1, "%s:%d Missng comment\n", authfile, linenum); + goto close; + } + stream_close(s); + lprintf(2, "Found authentication record for server \"%s\"\n", + server); + return (STATUS_SUCCESS); + } + lprintf(-1, "Unknown server \"%s\". Fix your %s\n", server , authfile); + memset(auth->password, 0, sizeof(auth->password)); +close: + stream_close(s); + return (STATUS_FAILURE); +} + +static int +auth_parsetoken(char **line, char *buf, int len) +{ + char *colon; + + colon = strchr(*line, ':'); + if (colon == NULL) + return (STATUS_FAILURE); + *colon = 0; + buf[len - 1] = 0; + strncpy(buf, *line, len - 1); + *line = colon + 1; + return (STATUS_SUCCESS); +} + +static void +auth_makesecret(struct srvrecord *auth, char *secret) +{ + char *s, ch; + const char *md5salt = "$md5$"; + unsigned char md5sum[MD5_BYTES]; + MD5_CTX md5; + + MD5_Init(&md5); + for (s = auth->client; *s != 0; ++s) { + ch = tolower(*s); + MD5_Update(&md5, &ch, 1); + } + MD5_Update(&md5, ":", 1); + for (s = auth->server; *s != 0; ++s) { + ch = tolower(*s); + MD5_Update(&md5, &ch, 1); + } + MD5_Update(&md5, ":", 1); + MD5_Update(&md5, auth->password, strlen(auth->password)); + MD5_Final(md5sum, &md5); + memset(secret, 0, sizeof(secret)); + strcpy(secret, md5salt); + auth_readablesum(md5sum, secret + strlen(md5salt)); +} + +static void +auth_makeresponse(char *challenge, char *sharedsecret, char *response) +{ + MD5_CTX md5; + unsigned char md5sum[MD5_BYTES]; + + MD5_Init(&md5); + MD5_Update(&md5, sharedsecret, strlen(sharedsecret)); + MD5_Update(&md5, ":", 1); + MD5_Update(&md5, challenge, strlen(challenge)); + MD5_Final(md5sum, &md5); + auth_readablesum(md5sum, response); +} + +/* + * Generates a challenge string which is an MD5 sum + * of a fairly random string. The purpose is to decrease + * the possibility of generating the same challenge + * string (even by different clients) more then once + * for the same server. + */ +static void +auth_makechallenge(struct config *config, char *challenge) +{ + MD5_CTX md5; + unsigned char md5sum[MD5_BYTES]; + char buf[128]; + struct timeval tv; + struct sockaddr_in laddr; + pid_t pid, ppid; + int error, addrlen; + + gettimeofday(&tv, NULL); + pid = getpid(); + ppid = getppid(); + srand(tv.tv_usec ^ tv.tv_sec ^ pid); + addrlen = sizeof(laddr); + error = getsockname(config->socket, (struct sockaddr *)&laddr, &addrlen); + if (error < 0) { + memset(&laddr, 0, sizeof(laddr)); + } + gettimeofday(&tv, NULL); + MD5_Init(&md5); + snprintf(buf, sizeof(buf), "%s:%ld:%ld:%ld:%d:%d", + inet_ntoa(laddr.sin_addr), tv.tv_sec, tv.tv_usec, random(), pid, ppid); + MD5_Update(&md5, buf, strlen(buf)); + MD5_Final(md5sum, &md5); + auth_readablesum(md5sum, challenge); +} + +static int +auth_checkresponse(char *response, char *challenge, char *secret) +{ + char correctresponse[MD5_CHARS_MAX]; + + auth_makeresponse(challenge, secret, correctresponse); + return (strcmp(response, correctresponse) == 0); +} + +static void +auth_readablesum(unsigned char *md5sum, char *readable) +{ + unsigned int i; + char *s = readable; + + for (i = 0; i < MD5_BYTES; ++i, s+=2) { + sprintf(s, "%.2x", md5sum[i]); + } +} + Added: user/eri/pf45/head/contrib/csup/auth.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/contrib/csup/auth.h Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,38 @@ +/*- + * Copyright (c) 2003-2007, Petar Zhivkov Petrov <pesho.petrov@gmail.com> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD: user/eri/pf45/head/contrib/csup/auth.h 203368 2010-02-02 05:57:42Z lulf $ + */ +#ifndef _AUTH_H_ +#define _AUTH_H_ + +#define AUTHFILE ".csup/auth" /* user home relative */ + +struct config; + +int auth_login(struct config *); + +#endif /* !_AUTH_H_ */ + Added: user/eri/pf45/head/contrib/csup/cpasswd.1 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/contrib/csup/cpasswd.1 Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,120 @@ +.\" Copyright 1999-2003 John D. Polstra. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgment: +.\" This product includes software developed by John D. Polstra. +.\" 4. The name of the author may not be used to endorse or promote products +.\" derived from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.\" $Id: cvpasswd.1,v 1.4 2003/03/04 18:24:42 jdp Exp $ +.\" $FreeBSD $ +.\" +.Dd June 27, 2007 +.Os FreeBSD +.Dt CPASSWD 1 +.Sh NAME +.Nm cpasswd +.Nd scramble passwords for csup authentication +.Sh SYNOPSIS +.Nm +.Ar clientName +.Ar serverName +.Sh DESCRIPTION +The +.Nm +utility creates scrambled passwords for the +.Nm CVSup +server's authentication database. It is invoked with a client name +and a server name. +.Ar ClientName +is the name the client uses to gain access to the +server. By convention, e-mail addresses are used for all client +names, e.g., +.Ql BillyJoe@FreeBSD.ORG . +Client names are case-insensitive. +.Pp +.Ar ServerName +is the name of the +.Nm CVSup +server which the client wishes to access. By convention, +it is the canonical fully-qualified domain name of the server, e.g., +.Ql CVSup.FreeBSD.ORG . +This must agree with the server's own idea of its name. The name is +case-insensitive. +.Pp +To set up authentication for a given server, one must perform the +following steps: +.Bl -enum +.It +Obtain the official +.Ar serverName +from the administrator of the server or from some other source. +.It +Choose an appropriate +.Ar clientName . +It should be in the form of a valid e-mail address, to make it easy +for the server administrator to contact the user if necessary. +.It +Choose an arbitrary secret +.Ar password . +.It +Run +.Nm cpasswd , +and type in the +.Ar password +when prompted for it. The utility will print out a line to send +to the server administrator, and instruct you how to modify your +.Li $ Ns Ev HOME Ns Pa /.csup/auth +file. You should use a secure channel to send the line to the +server administrator. +.El +.Pp +Since +.Li $ Ns Ev HOME Ns Pa /.csup/auth +contains passwords, you should ensure that it is not readable by +anyone except yourself. +.Sh FILES +.Bl -tag -width $HOME/.csup/authxx -compact +.It Li $ Ns Ev HOME Ns Pa /.csup/auth +Authentication password file. +.El +.Sh SEE ALSO +.Xr csup 1 , +.Xr cvsup 1 , +.Xr cvsupd 8 . +.Pp +.Bd -literal +http://www.cvsup.org/ +.Ed +.Sh AUTHORS +.An -nosplit +.An Petar Zhivkov Petrov Aq pesho.petrov@gmail.com +is the author of +.Nm , +the rewrite of +.Nm cvpasswd . +.An John Polstra Aq jdp@polstra.com +is the author of +.Nm CVSup . +.Sh LEGALITIES +CVSup is a registered trademark of John D. Polstra. Added: user/eri/pf45/head/contrib/csup/cpasswd.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/contrib/csup/cpasswd.sh Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,135 @@ +#! /bin/sh +# +# Copyright 2007. Petar Zhivkov Petrov +# pesho.petrov@gmail.com +# +# $FreeBSD: user/eri/pf45/head/contrib/csup/cpasswd.sh 203368 2010-02-02 05:57:42Z lulf $ + +usage() { + echo "Usage: $0 clientName serverName" + echo " $0 -v" +} + +countChars() { + _count="`echo "$1" | sed -e "s/[^$2]//g" | tr -d "\n" | wc -c`" + return 0 +} + +readPassword() { + while [ true ]; do + stty -echo + read -p "$1" _password + stty echo + echo "" + countChars "$_password" ":" + if [ $_count != 0 ]; then + echo "Sorry, password must not contain \":\" characters" + echo "" + else + break + fi + done + return 0 +} + +makeSecret() { + local clientLower="`echo "$1" | tr "[:upper:]" "[:lower:]"`" + local serverLower="`echo "$2" | tr "[:upper:]" "[:lower:]"`" + local secret="`md5 -qs "$clientLower:$serverLower:$3"`" + _secret="\$md5\$$secret" +} + +if [ $# -eq 1 -a "X$1" = "X-v" ]; then + echo "Csup authentication key generator" + usage + exit +elif [ $# -ne 2 ]; then + usage + exit +fi + +clientName=$1 +serverName=$2 + +# +# Client name must contain exactly one '@' and at least one '.'. +# It must not contain a ':'. +# + +countChars "$clientName" "@" +aCount=$_count + +countChars "$clientName" "." +dotCount=$_count +if [ $aCount -ne 1 -o $dotCount -eq 0 ]; then + echo "Client name must have the form of an e-mail address," + echo "e.g., \"user@domain.com\"" + exit +fi + +countChars "$clientName" ":" +colonCount=$_count +if [ $colonCount -gt 0 ]; then + echo "Client name must not contain \":\" characters" + exit +fi + +# +# Server name must not contain '@' and must have at least one '.'. +# It also must not contain a ':'. +# + +countChars "$serverName" "@" +aCount=$_count + +countChars "$serverName" "." +dotCount=$_count +if [ $aCount != 0 -o $dotCount = 0 ]; then + echo "Server name must be a fully-qualified domain name." + echo "e.g., \"host.domain.com\"" + exit +fi + +countChars "$serverName" ":" +colonCount=$_count +if [ $colonCount -gt 0 ]; then + echo "Server name must not contain \":\" characters" + exit +fi + +# +# Ask for password and generate secret. +# + +while [ true ]; do + readPassword "Enter password: " + makeSecret "$clientName" "$serverName" "$_password" + secret=$_secret + + readPassword "Enter same password again: " + makeSecret "$clientName" "$serverName" "$_password" + secret2=$_secret + + if [ "X$secret" = "X$secret2" ]; then + break + else + echo "Passwords did not match. Try again." + echo "" + fi +done + +echo "" +echo "Send this line to the server administrator at $serverName:" +echo "-------------------------------------------------------------------------------" +echo "$clientName:$secret::" +echo "-------------------------------------------------------------------------------" +echo "Be sure to send it using a secure channel!" +echo "" +echo "Add this line to your file \"$HOME/.csup/auth\", replacing \"XXX\"" +echo "with the password you typed in:" +echo "-------------------------------------------------------------------------------" +echo "$serverName:$clientName:XXX:" +echo "-------------------------------------------------------------------------------" +echo "Make sure the file is readable and writable only by you!" +echo "" + Added: user/eri/pf45/head/etc/devd/uath.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/etc/devd/uath.conf Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,120 @@ +# $FreeBSD: user/eri/pf45/head/etc/devd/uath.conf 202610 2010-01-19 01:33:56Z weongyo $ +# +# Atheros USB wireless network device specific devd events + +# Accton +# SMCWUSB-G and SMCWUSBT-G2 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x083a"; + match "product" "(0x4505|0x4507)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Atheros Communications +# AR5523 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x168c"; + match "product" "0x0002"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Atheros Communications +# AR5523 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x0cf3"; + match "product" "(0x0002|0x0004|0x0006)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Conceptronic +# AR5523 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x0d8e"; + match "product" "(0x7802|0x7812)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# D-Link +# DWL-AG132, DWL-G132 and DWL-AG122 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x2001"; + match "product" "(0x3a01|0x3a03|0x3a05)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# D-Link +# DWA-120 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x07d1"; + match "product" "0x3a0c"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Gigaset +# SMCWUSBT-G +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x1690"; + match "product" "(0x0711|0x0713)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Global Sun Technology +# AR5523 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x16ab"; + match "product" "(0x7802|0x7812)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# BayNETGEAR +# WG111U +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x0846"; + match "product" "0x4301"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Netgear +# WG111T and WPN111 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x1385"; + match "product" "(0x4251|0x5f01)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# U-MEDIA Communications +# TEW-444UB and AR5523 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x157e"; + match "product" "(0x3007|0x3206)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Wistron NeWeb +# AR5523 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x1435"; + match "product" "(0x0827|0x0829)"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; + +# Z-Com +# AR5523 +attach 100 { + device-name "ugen[0-9.]+"; + match "vendor" "0x0cde"; + match "product" "0x0013"; + action "/usr/sbin/uathload -d /dev/$device-name"; +}; Added: user/eri/pf45/head/etc/rc.d/rtsold ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/etc/rc.d/rtsold Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $FreeBSD: user/eri/pf45/head/etc/rc.d/rtsold 203433 2010-02-03 16:18:42Z ume $ +# + +# PROVIDE: rtsold +# REQUIRE: netif +# BEFORE: NETWORKING +# KEYWORD: nojail + +. /etc/rc.subr + +name="rtsold" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" +pidfile="/var/run/${name}.pid" +start_postcmd="rtsold_poststart" + +rtsold_poststart() +{ + # wait for DAD + sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1)) +} + +load_rc_config $name +run_rc_command "$1" Added: user/eri/pf45/head/lib/libarchive/archive_crc32.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/lib/libarchive/archive_crc32.h Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,66 @@ +/*- + * Copyright (c) 2009 Joerg Sonnenberger + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $FreeBSD: user/eri/pf45/head/lib/libarchive/archive_crc32.h 201102 2009-12-28 03:11:36Z kientzle $ + */ + +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + +/* + * When zlib is unavailable, we should still be able to validate + * uncompressed zip archives. That requires us to be able to compute + * the CRC32 check value. This is a drop-in compatible replacement + * for crc32() from zlib. It's slower than the zlib implementation, + * but still pretty fast: This runs about 300MB/s on my 3GHz P4 + * compared to about 800MB/s for the zlib implementation. + */ +static unsigned long +crc32(unsigned long crc, const void *_p, size_t len) +{ + unsigned long crc2, b, i; + const unsigned char *p = _p; + static volatile int crc_tbl_inited = 0; + static unsigned long crc_tbl[256]; + + if (!crc_tbl_inited) { + for (b = 0; b < 256; ++b) { + crc2 = b; + for (i = 8; i > 0; --i) { + if (crc2 & 1) + crc2 = (crc2 >> 1) ^ 0xedb88320UL; + else + crc2 = (crc2 >> 1); + } + crc_tbl[b] = crc2; + } + crc_tbl_inited = 1; + } + + crc = crc ^ 0xffffffffUL; + while (len--) + crc = crc_tbl[(crc ^ *p++) & 0xff] ^ (crc >> 8); + return (crc ^ 0xffffffffUL); +} Added: user/eri/pf45/head/lib/libarchive/archive_entry_xattr.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/eri/pf45/head/lib/libarchive/archive_entry_xattr.c Tue Feb 23 09:58:12 2010 (r204245) @@ -0,0 +1,158 @@ +/*- + * Copyright (c) 2003-2007 Tim Kientzle + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include "archive_platform.h" +__FBSDID("$FreeBSD: user/eri/pf45/head/lib/libarchive/archive_entry_xattr.c 201096 2009-12-28 02:41:27Z kientzle $"); + +#ifdef HAVE_SYS_STAT_H +#include <sys/stat.h> +#endif +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif +#ifdef HAVE_LINUX_FS_H +#include <linux/fs.h> /* for Linux file flags */ +#endif +/* + * Some Linux distributions have both linux/ext2_fs.h and ext2fs/ext2_fs.h. + * As the include guards don't agree, the order of include is important. + */ +#ifdef HAVE_LINUX_EXT2_FS_H +#include <linux/ext2_fs.h> /* for Linux file flags */ +#endif +#if defined(HAVE_EXT2FS_EXT2_FS_H) && !defined(__CYGWIN__) +#include <ext2fs/ext2_fs.h> /* for Linux file flags */ +#endif +#include <stddef.h> +#include <stdio.h> +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif +#ifdef HAVE_STRING_H +#include <string.h> +#endif +#ifdef HAVE_WCHAR_H +#include <wchar.h> +#endif + +#include "archive.h" +#include "archive_entry.h" +#include "archive_private.h" +#include "archive_entry_private.h" + +/* + * extended attribute handling + */ + +void +archive_entry_xattr_clear(struct archive_entry *entry) +{ + struct ae_xattr *xp; + + while (entry->xattr_head != NULL) { + xp = entry->xattr_head->next; + free(entry->xattr_head->name); + free(entry->xattr_head->value); + free(entry->xattr_head); + entry->xattr_head = xp; + } + + entry->xattr_head = NULL; +} + +void +archive_entry_xattr_add_entry(struct archive_entry *entry, + const char *name, const void *value, size_t size) +{ + struct ae_xattr *xp; + + for (xp = entry->xattr_head; xp != NULL; xp = xp->next) + ; + + if ((xp = (struct ae_xattr *)malloc(sizeof(struct ae_xattr))) == NULL) + /* XXX Error XXX */ + return; + + xp->name = strdup(name); + if ((xp->value = malloc(size)) != NULL) { + memcpy(xp->value, value, size); + xp->size = size; + } else + xp->size = 0; + + xp->next = entry->xattr_head; + entry->xattr_head = xp; +} + + +/* + * returns number of the extended attribute entries + */ +int +archive_entry_xattr_count(struct archive_entry *entry) +{ + struct ae_xattr *xp; + int count = 0; + + for (xp = entry->xattr_head; xp != NULL; xp = xp->next) + count++; + + return count; +} + +int +archive_entry_xattr_reset(struct archive_entry * entry) +{ + entry->xattr_p = entry->xattr_head; + + return archive_entry_xattr_count(entry); +} + +int +archive_entry_xattr_next(struct archive_entry * entry, + const char **name, const void **value, size_t *size) +{ + if (entry->xattr_p) { *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002230958.o1N9wC13029774>