Index: head/security/ruby-bitwarden/Makefile =================================================================== --- head/security/ruby-bitwarden/Makefile (revision 528871) +++ head/security/ruby-bitwarden/Makefile (revision 528872) @@ -1,35 +1,35 @@ # Created by: Mark Felder # $FreeBSD$ PORTNAME= rubywarden -DISTVERSION= 0.0.0.20190207 -PORTREVISION= 1 +DISTVERSION= 0.0.0.20200226 +#PORTREVISION= 1 CATEGORIES= security www MAINTAINER= mr@FreeBSD.org COMMENT= Ruby implementation of the BitWarden API LICENSE= ISCL RUN_DEPENDS= rubygem-bundler>=1.16:sysutils/rubygem-bundler USES= sqlite USE_RUBY= yes RUBY_NO_BUILD_DEPENDS= yes USE_GITHUB= yes GH_ACCOUNT= jcs -GH_TAGNAME= 5ba9f9821971942d082e327edcf7f02e8ad4c4a7 +GH_TAGNAME= 549f66466ca753ee2f3c007b6e242d59dae05fdd NO_ARCH= yes NO_BUILD= yes USE_RC_SUBR= rubywarden-api SUB_FILES= pkg-message SUB_LIST+= RUBY_WITH_SUFFIX="${RUBY_WITH_SUFFIX}" do-install: ${MKDIR} ${STAGEDIR}/${WWWDIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}) .include Index: head/security/ruby-bitwarden/distinfo =================================================================== --- head/security/ruby-bitwarden/distinfo (revision 528871) +++ head/security/ruby-bitwarden/distinfo (revision 528872) @@ -1,3 +1,3 @@ -TIMESTAMP = 1552216607 -SHA256 (jcs-rubywarden-0.0.0.20190207-5ba9f9821971942d082e327edcf7f02e8ad4c4a7_GH0.tar.gz) = 6dce8c391480726200d1f7a9d2f1fad4fe435f25a0c96427b3782ba96a8adbc2 -SIZE (jcs-rubywarden-0.0.0.20190207-5ba9f9821971942d082e327edcf7f02e8ad4c4a7_GH0.tar.gz) = 38046 +TIMESTAMP = 1584823928 +SHA256 (jcs-rubywarden-0.0.0.20200226-549f66466ca753ee2f3c007b6e242d59dae05fdd_GH0.tar.gz) = c5ba2fbbdbf1cb444e2cb654c67feff104af2922aefe76099a9ae1ac9a54b378 +SIZE (jcs-rubywarden-0.0.0.20200226-549f66466ca753ee2f3c007b6e242d59dae05fdd_GH0.tar.gz) = 39239 Index: head/security/ruby-bitwarden/files/rubywarden-api.in =================================================================== --- head/security/ruby-bitwarden/files/rubywarden-api.in (revision 528871) +++ head/security/ruby-bitwarden/files/rubywarden-api.in (revision 528872) @@ -1,48 +1,49 @@ #!/bin/sh # # Created by: Mark Felder # $FreeBSD$ # # PROVIDE: rubywarden-api # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable `rubywarden-api': # # rubywarden_api_enable="YES" . /etc/rc.subr name=rubywarden_api rcvar=rubywarden_api_enable load_rc_config ${name} : ${rubywarden_api_enable:=NO} +: ${rubywarden_api_host:=localhost} : ${rubywarden_api_port:=4567} : ${rubywarden_api_signups:=NO} : ${rubywarden_api_user:=www} : ${rubywarden_api_group:=www} : ${rubywarden_api_chdir=/usr/local/www/rubywarden} pidfile="/var/run/rubywarden/${name}.pid" procname=%%RUBY_WITH_SUFFIX%% command="%%PREFIX%%/bin/rackup" -command_args="-P ${pidfile} -p ${rubywarden_api_port} -E production config.ru 2>&1 | logger -t rubywarden &" +command_args="-P ${pidfile} -o ${rubywarden_api_host} -p ${rubywarden_api_port} -E production config.ru 2>&1 | logger -t rubywarden &" start_precmd="start_precmd" start_precmd() { if [ ! -e /var/run/rubywarden ] ; then install -d -o ${rubywarden_api_user} -g ${rubywarden_api_group} /var/run/rubywarden; fi checkyesno rubywarden_api_signups if [ "$?" -eq 0 ]; then export ALLOW_SIGNUPS=1 echo "Bitwarden Signups Enabled" fi } run_rc_command "$1" Index: head/security/ruby-bitwarden/pkg-plist =================================================================== --- head/security/ruby-bitwarden/pkg-plist (revision 528871) +++ head/security/ruby-bitwarden/pkg-plist (revision 528872) @@ -1,56 +1,61 @@ +etc/rc.d/rubywarden-api %%WWWDIR%%/.gitignore %%WWWDIR%%/API.md %%WWWDIR%%/AR-MIGRATE.md %%WWWDIR%%/Gemfile %%WWWDIR%%/Gemfile.lock %%WWWDIR%%/LICENSE %%WWWDIR%%/README.md %%WWWDIR%%/Rakefile %%WWWDIR%%/config.ru %%WWWDIR%%/db/.gitkeep %%WWWDIR%%/db/config.yml %%WWWDIR%%/db/migrate/20180324145941_create_users.rb %%WWWDIR%%/db/migrate/20180324151103_create_devices.rb %%WWWDIR%%/db/migrate/20180324151113_create_folders.rb %%WWWDIR%%/db/migrate/20180324151117_create_ciphers.rb %%WWWDIR%%/db/migrate/20180518070354_set_default_value_for_favorite.rb %%WWWDIR%%/db/migrate/20180818095054_create_attachments.rb %%WWWDIR%%/db/migrate/20180818201731_user_kdf_iterations.rb %%WWWDIR%%/db/migrate/20180818212323_add_user_kdf_type.rb +%%WWWDIR%%/db/migrate/20190419171915_drop_attachments_url.rb +%%WWWDIR%%/db/migrate/201905%%RUBY_SUFFIX%%014920_password_history.rb +%%WWWDIR%%/db/migrate/20190724163354_no_null_kdf_iterations.rb %%WWWDIR%%/lib/app.rb %%WWWDIR%%/lib/attachment.rb %%WWWDIR%%/lib/bitwarden.rb %%WWWDIR%%/lib/cipher.rb %%WWWDIR%%/lib/db.rb %%WWWDIR%%/lib/dbmodel.rb %%WWWDIR%%/lib/device.rb %%WWWDIR%%/lib/folder.rb %%WWWDIR%%/lib/helper.rb %%WWWDIR%%/lib/helpers/attachment_helpers.rb %%WWWDIR%%/lib/helpers/request_helpers.rb %%WWWDIR%%/lib/routes/api.rb %%WWWDIR%%/lib/routes/attachments.rb %%WWWDIR%%/lib/routes/icons.rb %%WWWDIR%%/lib/routes/identity.rb %%WWWDIR%%/lib/rubywarden.rb %%WWWDIR%%/lib/user.rb %%WWWDIR%%/spec/attachment_spec.rb %%WWWDIR%%/spec/bitwarden_importer_spec.rb %%WWWDIR%%/spec/cipher_spec.rb %%WWWDIR%%/spec/cipherstring_spec.rb %%WWWDIR%%/spec/db_spec.rb %%WWWDIR%%/spec/fixtures/bitwarden_export.csv %%WWWDIR%%/spec/folder_spec.rb %%WWWDIR%%/spec/icon_spec.rb %%WWWDIR%%/spec/identity_spec.rb %%WWWDIR%%/spec/spec_helper.rb +%%WWWDIR%%/spec/support/factories.rb +%%WWWDIR%%/spec/support/request_helpers.rb %%WWWDIR%%/spec/user_spec.rb %%WWWDIR%%/tools/1password_import.rb %%WWWDIR%%/tools/activate_totp.rb %%WWWDIR%%/tools/bitwarden_import.rb %%WWWDIR%%/tools/change_master_password.rb %%WWWDIR%%/tools/keepass_import.rb %%WWWDIR%%/tools/lastpass_import.rb %%WWWDIR%%/tools/migrate_to_ar.rb %%WWWDIR%%/tools/mitm.rb -@dir(www,www,0750) %%WWWDIR%%/db