PKG_NAME:=nginx-util
PKG_VERSION:=1.6
-PKG_RELEASE:=16
+PKG_RELEASE:=17
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
include $(INCLUDE_DIR)/package.mk
# Consider using UCI or creating files in /etc/nginx/conf.d/ for configuration.
# Parsing UCI configuration is skipped if uci set nginx.global.uci_enable=false
# For details see: https://openwrt.org/docs/guide-user/services/webserver/nginx
+# UCI_CONF_VERSION=1.1
worker_processes auto;
--prefix=/usr \
--conf-path=/etc/nginx/nginx.conf \
--modules-path=/usr/lib/nginx/modules \
+ --with-compat \
$(ADDITIONAL_MODULES) \
--error-log-path=stderr \
--pid-path=/var/run/nginx.pid \
G_OPTS="daemon off;"
NGINX_UTIL="/usr/bin/nginx-util"
+UCI_CONF_TEMPLATE="/etc/nginx/uci.conf.template"
+LATEST_UCI_CONF_VERSION="1.1"
eval $("${NGINX_UTIL}" get_env)
CONF=""
+nginx_check_luci_template() {
+ UCI_CONF_VERSION="$(sed -nr 's/# UCI_CONF_VERSION=(.*)/\1/p' $UCI_CONF_TEMPLATE)"
+
+ # No need to migrate already latest version
+ if [ "$UCI_CONF_VERSION" = "$LATEST_UCI_CONF_VERSION" ]; then
+ return
+ fi
+
+ if [ -z "$UCI_CONF_VERSION" ]; then
+ echo "" >> $UCI_CONF_TEMPLATE
+ echo "include module.d/*.module;" >> $UCI_CONF_TEMPLATE
+ echo "# UCI_CONF_VERSION=1.1" >> $UCI_CONF_TEMPLATE
+ fi
+}
nginx_init() {
[ -z "${CONF}" ] || return # already called.
rm -f "$(readlink "${UCI_CONF}")"
${NGINX_UTIL} init_lan
+ if [ -f $UCI_CONF_TEMPLATE ]; then
+ nginx_check_luci_template
+ fi
+
if [ -e "${UCI_CONF}" ]
then CONF="${UCI_CONF}"
else CONF="${NGINX_CONF}"
bool "enable radius authentication"
default n
+config OCSERV_LIBOATH
+ bool "enable OTP"
+ default n
+
config OCSERV_PROTOBUF
bool "use external libprotobuf"
default y
PKG_NAME:=ocserv
PKG_VERSION:=1.1.7
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_BUILD_FLAGS:=no-mips16
PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
TITLE:=OpenConnect VPN server
URL:=http://www.infradead.org/ocserv/
MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
- DEPENDS:= +OCSERV_RADIUS:libradcli +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +libev +kmod-tun
+ DEPENDS:= +OCSERV_RADIUS:libradcli +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +OCSERV_LIBOATH:liboath +libev +kmod-tun
USERID:=ocserv=72:ocserv=72
endef
CONFIGURE_ARGS += --without-http-parser
endif
+ifndef CONFIG_OCSERV_LIBOATH
+CONFIGURE_ARGS += --without-liboath
+endif
+
define Package/ocserv/conffiles
/etc/config/ocserv
endef
include $(TOPDIR)/rules.mk
PKG_NAME:=tailscale
-PKG_VERSION:=1.40.0
+PKG_VERSION:=1.40.1
PKG_RELEASE:=1
PKG_SOURCE:=tailscale-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/tailscale/tailscale/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=6964176889943e0e0b25d8d69e14226cfb1c1a9944a257b24cb2dd212f797141
+PKG_HASH:=9c0a9648c921f695fc501536e69c8b4998d318256c8049de538f72fbe1491c18
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
PKG_LICENSE:=BSD-3-Clause
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
include $(INCLUDE_DIR)/package-seccomp.mk
+include $(INCLUDE_DIR)/nls.mk
define Package/transmission/template
SUBMENU:=BitTorrent
PKG_NAME:=oath-toolkit
PKG_VERSION:=2.6.5
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SAVANNAH/oath-toolkit
--disable-xmltest \
--disable-pskc
+define Package/liboath
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE:=A shared and static C library for OATH handling
+ URL:=http://www.nongnu.org/oath-toolkit/index.html
+endef
+
+define Package/oath-pam
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE:=The oath PAM module
+ URL:=http://www.nongnu.org/oath-toolkit/index.html
+ DEPENDS:= +libpam +liboath
+endef
+
define Package/oath-toolkit
SECTION:=utils
CATEGORY:=Utilities
- TITLE:=Toolkit for building one-time password authentication
+ TITLE:=A command line tool for generating and validating OTPs
URL:=http://www.nongnu.org/oath-toolkit/index.html
- DEPENDS:=
+ DEPENDS:= +liboath
endef
-define Package/oath-toolkit/description
- The OATH Toolkit provide components for building one-time password
- authentication systems. It contains shared libraries, command line
- tools and a PAM module. Supported technologies include the event-based
- HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
+define Package/liboath/description
+ The OATH Toolkit provide components for building one-time password
+ authentication systems. It contains shared libraries, command line
+ tools and a PAM module. Supported technologies include the event-based
+ HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
endef
+Package/oath-pam/description = $(Package/liboath/description)
+
+Package/oath-toolkit/description = $(Package/liboath/description)
+
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/liboath
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
endef
+define Package/liboath/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
+endef
+
+define Package/oath-pam/install
+ $(INSTALL_DIR) $(1)/usr/lib/security
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/pam_oath.so* $(1)/usr/lib/security/
+endef
+
define Package/oath-toolkit/install
$(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
endef
+$(eval $(call BuildPackage,liboath))
+$(eval $(call BuildPackage,oath-pam))
$(eval $(call BuildPackage,oath-toolkit))