PN: dropbear
PV: 2022.83
PR: r0
PKGV: 2022.83
PKGR: r0@EXTENDPRAUTO@
LICENSE: MIT & BSD-3-Clause & BSD-2-Clause & PD
DESCRIPTION: Dropbear is a relatively small SSH server and client. It runs on a variety of POSIX-based platforms. Dropbear is open source software, distributed under a MIT-style license. Dropbear is particularly useful for "embedded"-type Linux (or other Unix) systems, such as wireless routers.
SUMMARY: A lightweight SSH and SCP implementation
RDEPENDS:dropbear: base-files base-passwd initng libpam-runtime pam-plugin-deny pam-plugin-permit pam-plugin-unix shadow update-alternatives-opkg glibc (>= 2.39+git0+273a835fe7) libpam (>= 1.5.3)
RPROVIDES:dropbear: ssh sshd
RCONFLICTS:dropbear: openssh-sshd openssh
SECTION: console/network
PKG:dropbear: dropbear
FILES:dropbear: /usr/bin/* /usr/sbin/* /usr/libexec/* /usr/lib/lib*.so.*             /etc /com /var             /bin/* /sbin/*             /lib/*.so.*             /lib/udev /usr/lib/udev             /lib/udev /usr/lib/udev             /usr/share/dropbear /usr/lib/dropbear/*             /usr/share/pixmaps /usr/share/applications             /usr/share/idl /usr/share/omf /usr/share/sounds             /usr/lib/bonobo/servers /etc/initng/service/genkey /etc/initng/daemon/dropbear
CONFFILES:dropbear: /etc/default/dropbear
FILES_INFO:dropbear: {"/etc/default/dropbear": 59, "/etc/initng/daemon/dropbear": 599, "/etc/initng/service/genkey": 477, "/etc/nologin": 0, "/etc/pam.d/dropbear": 74, "/usr/bin/dbclient": 23, "/usr/sbin/dropbear": 15, "/usr/sbin/dropbearconvert": 15, "/usr/sbin/dropbearkey": 15, "/usr/sbin/dropbearmulti": 343608}
pkg_postinst:dropbear: set -e\n\tupdate-alternatives --install /usr/bin/scp scp /usr/sbin/dropbearmulti 20\n\tupdate-alternatives --install /usr/bin/ssh ssh /usr/sbin/dropbearmulti 20\n#!/bin/sh\n    if [ ! -d $D/etc/initng ]; then\n        mkdir -p $D/etc/initng\n    fi\n    if [ ! -e $D/etc/initng/default.runlevel ]; then\n        touch $D/etc/initng/default.runlevel\n        chmod 760 $D/etc/initng/default.runlevel\n        chown root:initng $D/etc/initng/default.runlevel\n    fi\n    if [ "enable" = "enable" ]; then\n        for target in service/genkey daemon/dropbear; do\n            if ! grep -e "${target}" -f $D/etc/initng/default.runlevel; then\n                echo "${target}" >> $D/etc/initng/default.runlevel\n            fi\n        done\n    fi\n
pkg_postrm:dropbear: set -e\n  if [ -f "/etc/dropbear/dropbear_rsa_host_key" ]; then\n        rm /etc/dropbear/dropbear_rsa_host_key\n  fi\n  if [ -f "/etc/dropbear/dropbear_dss_host_key" ]; then\n        rm /etc/dropbear/dropbear_dss_host_key\n  fi\n
pkg_preinst:dropbear: #!/bin/sh\nset -e\nbbnote () {\n\techo "NOTE: $*"\n}\nbbwarn () {\n\techo "WARNING: $*"\n}\nbbfatal () {\n\techo "ERROR: $*"\n\texit 1\n}\nperform_groupadd () {\n\tlocal rootdir="$1"\n\tlocal opts="$2"\n\tbbnote "dropbear: Performing groupadd with [$opts]"\n\tlocal groupname=`echo "$opts" | awk '{ print $NF }'`\n\tlocal group_exists="`grep "^$groupname:" $rootdir/etc/group || true`"\n\tif test "x$group_exists" = "x"; then\n\t\teval flock -x $rootdir/etc -c \\"$PSEUDO groupadd \\$opts\\" || true\n\t\tgroup_exists="`grep "^$groupname:" $rootdir/etc/group || true`"\n\t\tif test "x$group_exists" = "x"; then\n\t\t\tbbfatal "dropbear: groupadd command did not succeed."\n\t\tfi\n\telse\n\t\tbbnote "dropbear: group $groupname already exists, not re-creating it"\n\tfi\n}\nperform_useradd () {\n\tlocal rootdir="$1"\n\tlocal opts="$2"\n\tbbnote "dropbear: Performing useradd with [$opts]"\n\tlocal username=`echo "$opts" | awk '{ print $NF }'`\n\tlocal user_exists="`grep "^$username:" $rootdir/etc/passwd || true`"\n\tif test "x$user_exists" = "x"; then\n\t\teval flock -x $rootdir/etc -c  \\"$PSEUDO useradd \\$opts\\" || true\n\t\tuser_exists="`grep "^$username:" $rootdir/etc/passwd || true`"\n\t\tif test "x$user_exists" = "x"; then\n\t\t\tbbfatal "dropbear: useradd command did not succeed."\n\t\tfi\n\telse\n\t\tbbnote "dropbear: user $username already exists, not re-creating it"\n\tfi\n}\nperform_groupmems () {\n\tlocal rootdir="$1"\n\tlocal opts="$2"\n\tbbnote "dropbear: Performing groupmems with [$opts]"\n\tlocal groupname=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-g" || $i == "--group") print $(i+1) }'`\n\tlocal username=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-a" || $i == "--add") print $(i+1) }'`\n\tbbnote "dropbear: Running groupmems command with group $groupname and user $username"\n\tlocal mem_exists="`grep "^$groupname:[^:]*:[^:]*:\\([^,]*,\\)*$username\\(,[^,]*\\)*$" $rootdir/etc/group || true`"\n\tif test "x$mem_exists" = "x"; then\n\t\teval flock -x $rootdir/etc -c \\"$PSEUDO groupmems \\$opts\\" || true\n\t\tmem_exists="`grep "^$groupname:[^:]*:[^:]*:\\([^,]*,\\)*$username\\(,[^,]*\\)*$" $rootdir/etc/group || true`"\n\t\tif test "x$mem_exists" = "x"; then\n\t\t\tbbfatal "dropbear: groupmems command did not succeed."\n\t\tfi\n\telse\n\t\tbbnote "dropbear: group $groupname already contains $username, not re-adding it"\n\tfi\n}\nOPT=""\nSYSROOT=""\n\nif test "x$D" != "x"; then\n\t# Installing into a sysroot\n\tSYSROOT="$D"\n\tOPT="--root $D"\n\n\t# Make sure login.defs is there, this is to make debian package backend work\n\t# correctly while doing rootfs.\n\t# The problem here is that if /etc/login.defs is treated as a config file for\n\t# shadow package, then while performing preinsts for packages that depend on\n\t# shadow, there might only be /etc/login.def.dpkg-new there in root filesystem.\n\tif [ ! -e $D/etc/login.defs -a -e $D/etc/login.defs.dpkg-new ]; then\n\t    cp $D/etc/login.defs.dpkg-new $D/etc/login.defs\n\tfi\n\n\t# user/group lookups should match useradd/groupadd --root\n\texport PSEUDO_PASSWD="$SYSROOT"\nfi\n\n# If we're not doing a special SSTATE/SYSROOT install\n# then set the values, otherwise use the environment\nif test "x$UA_SYSROOT" = "x"; then\n\t# Installing onto a target\n\t# Add groups and users defined only for this package\n\tGROUPADD_PARAM="--gid 997 ssh"\n\tUSERADD_PARAM="--home-dir /run/sshd --gid 997 --shell /bin/false --uid 997 ssh"\n\tGROUPMEMS_PARAM=""\nfi\n\n# Perform group additions first, since user additions may depend\n# on these groups existing\nif test "x`echo $GROUPADD_PARAM | tr -d '[:space:]'`" != "x"; then\n\techo "Running groupadd commands..."\n\t# Invoke multiple instances of groupadd for parameter lists\n\t# separated by ';'\n\topts=`echo "$GROUPADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \\t]*$##'`\n\tremaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \\t]*$##'`\n\twhile test "x$opts" != "x"; do\n\t\tperform_groupadd "$SYSROOT" "$OPT $opts"\n\t\tif test "x$opts" = "x$remaining"; then\n\t\t\tbreak\n\t\tfi\n\t\topts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \\t]*$##'`\n\t\tremaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \\t]*$##'`\n\tdone\nfi\n\nif test "x`echo $USERADD_PARAM | tr -d '[:space:]'`" != "x"; then\n\techo "Running useradd commands..."\n\t# Invoke multiple instances of useradd for parameter lists\n\t# separated by ';'\n\topts=`echo "$USERADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \\t]*$##'`\n\tremaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \\t]*$##'`\n\twhile test "x$opts" != "x"; do\n\t\tperform_useradd "$SYSROOT" "$OPT $opts"\n\t\tif test "x$opts" = "x$remaining"; then\n\t\t\tbreak\n\t\tfi\n\t\topts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \\t]*$##'`\n\t\tremaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \\t]*$##'`\n\tdone\nfi\n\nif test "x`echo $GROUPMEMS_PARAM | tr -d '[:space:]'`" != "x"; then\n\techo "Running groupmems commands..."\n\t# Invoke multiple instances of groupmems for parameter lists\n\t# separated by ';'\n\topts=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \\t]*$##'`\n\tremaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \\t]*$##'`\n\twhile test "x$opts" != "x"; do\n\t\tperform_groupmems "$SYSROOT" "$OPT $opts"\n\t\tif test "x$opts" = "x$remaining"; then\n\t\t\tbreak\n\t\tfi\n\t\topts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \\t]*$##'`\n\t\tremaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \\t]*$##'`\n\tdone\nfi\n
pkg_prerm:dropbear: #!/bin/sh\nset -e\n\tupdate-alternatives --remove  scp /usr/sbin/dropbearmulti\n\tupdate-alternatives --remove  ssh /usr/sbin/dropbearmulti\n
FILERPROVIDESFLIST:dropbear:  /usr/sbin/dropbearmulti
FILERPROVIDES:/usr/sbin/dropbearmulti:dropbear:  /usr/bin/scp /usr/bin/ssh
FILERDEPENDSFLIST:dropbear: /etc/initng/daemon/dropbear /etc/initng/service/genkey /usr/sbin/dropbearmulti
FILERDEPENDS:/etc/initng/daemon/dropbear:dropbear:  /sbin/runiscript
FILERDEPENDS:/etc/initng/service/genkey:dropbear:  /sbin/runiscript
FILERDEPENDS:/usr/sbin/dropbearmulti:dropbear:  libpam.so.0(LIBPAM_1.0)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.25)(64bit) libc.so.6(GLIBC_2.8)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libpam.so.0()(64bit) libc.so.6()(64bit) rtld(GNU_HASH)
PKGSIZE:dropbear: 344885
