blob: 05e0a397ff79f49099578111ee085abab9f948bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#
## Copyright (C) 2021-2022 CZ.NIC z.s.p.o. (https://www.nic.cz/)
#
## This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=turris-bootstrap-theme
PKG_VERSION:=0.3.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/bootstrap-theme.git
PKG_MIRROR_HASH:=b83cba622f3d3d9ab532f3b7ef79826dc4fa28c7151658cd0b28bae990ed9267
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/turris-bootstrap-theme
SECTION:=web
CATEGORY:=Web
TITLE:=Turris Bootstrap Theme
DEPENDS:=+lighttpd +lighttpd-mod-alias
endef
define Package/turris-bootstrap-theme/description
Common Turris-specific bootstrap theme.
endef
Build/Compile:=:
define Package/turris-bootstrap-theme/install
$(INSTALL_DIR) $(1)/etc/lighttpd/conf.d
$(INSTALL_CONF) ./files/lighttpd.conf $(1)/etc/lighttpd/conf.d/theme.conf
$(INSTALL_DIR) $(1)/www/turris-theme
$(MAKE) -C $(PKG_BUILD_DIR) install NO_BUILD=y INSTALL_DIR=$(1)/www/turris-theme
endef
define Package/turris-bootstrap-theme/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/lighttpd restart
endef
$(eval $(call BuildPackage,turris-bootstrap-theme))
|