Commit 9f9b6537 authored by Štěpán Henek's avatar Štěpán Henek 🐻

foris-pakon-plugin+foris-controller-pakon-module: packages added

parent 6cff02e9
#
# Copyright (C) 2017 CZ.NIC z. s. p. o. (https://www.nic.cz/)
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=foris-controller-pakon-module
PKG_VERSION:=0.1
PKG_RELEASE:=1
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.labs.nic.cz/turris/foris-controller-pakon-module.git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILE:=LICENSE
include $(INCLUDE_DIR)/package.mk
include ../foris-controller/files/foris-controller-module.mk
$(call include_mk, python-package.mk)
define Package/$(PKG_NAME)
TITLE:=$(PKG_NAME)
DEPENDS:=\
+foris-controller +pakon
MAINTAINER:=Stepan Henek <stepan.henek@nic.cz>
endef
define Package/$(PKG_NAME)/description
This is a pakon module for foris-controller
endef
define Build/Compile
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
endef
#
# Package install definition
$(eval $(call ForisControllerModule,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))
#
# Copyright (C) 2017 CZ.NIC z. s. p. o. (https://www.nic.cz/)
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=foris-pakon-plugin
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.labs.nic.cz/turris/foris-pakon-plugin.git
PKG_SOURCE_VERSION:=package-v$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILE:=LICENSE
PKG_BUILD_DEPENDS:=foris/host
include $(INCLUDE_DIR)/package.mk
include ../foris/files/foris-translations.mk
include ../foris/files/foris-plugin.mk
define Package/$(PKG_NAME)
TITLE:=$(PKG_NAME)
DEPENDS:=\
+foris +foris-controller-pakon-module
MAINTAINER:=Stepan Henek <stepan.henek@nic.cz>
endef
define Package/$(PKG_NAME)/description
Foris plugin for pakon program
endef
define Build/Compile
$(call Build/Compile/ForisPlugin)
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
set -x
[ -n "$$IPKG_INSTROOT" ] || {
/etc/init.d/lighttpd restart
}
endef
define Package/$(PKG_NAME)/postrm
#!/bin/sh
set -x
[ -n "$$IPKG_INSTROOT" ] || {
/etc/init.d/lighttpd restart
}
endef
# Package install definition
$(eval $(call ForisPlugin,$(PKG_NAME),pakon))
# Translation definitions
FORIS_TRANSLATIONS:=
$(foreach trans,$(FORIS_TRANSLATIONS),$(eval $(call ForisPluginTranslation,$(PKG_NAME),pakon,$(trans))))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(foreach trans,$(FORIS_TRANSLATIONS),$(eval $(call BuildPackage,$(PKG_NAME)-l10n-$(trans))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment