| 1 | include $(TOPDIR)/rules.mk |
|---|
| 2 | |
|---|
| 3 | PKG_BRANCH:=trunk |
|---|
| 4 | |
|---|
| 5 | ifeq ($(DUMP),) |
|---|
| 6 | USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1) |
|---|
| 7 | endif |
|---|
| 8 | |
|---|
| 9 | PKG_NAME:=luci |
|---|
| 10 | PKG_RELEASE:=1 |
|---|
| 11 | |
|---|
| 12 | ifeq ($(USELOCAL),1) |
|---|
| 13 | PKG_VERSION:=0.9+svn |
|---|
| 14 | else |
|---|
| 15 | PKG_SOURCE_URL:=http://dev.leipzig.freifunk.net/svn/ff-luci/$(PKG_BRANCH) |
|---|
| 16 | ifeq ($(DUMP),) |
|---|
| 17 | PKG_REV:=$(shell LC_ALL=C svn info ${PKG_SOURCE_URL} | sed -ne's/^Last Changed Rev: //p') |
|---|
| 18 | PKG_VERSION:=0.9+svn$(PKG_REV) |
|---|
| 19 | endif |
|---|
| 20 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
|---|
| 21 | PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz |
|---|
| 22 | PKG_SOURCE_PROTO:=svn |
|---|
| 23 | PKG_SOURCE_VERSION:=$(PKG_REV) |
|---|
| 24 | endif |
|---|
| 25 | |
|---|
| 26 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
|---|
| 27 | PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install |
|---|
| 28 | |
|---|
| 29 | PKG_BUILD_DEPENDS:=libnotimpl |
|---|
| 30 | LUA_TARGET:=source |
|---|
| 31 | PKG_SELECTED_MODULES:= |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | include $(INCLUDE_DIR)/package.mk |
|---|
| 35 | |
|---|
| 36 | ifeq ($(USELOCAL),1) |
|---|
| 37 | define Build/Prepare |
|---|
| 38 | mkdir -p $(PKG_BUILD_DIR) |
|---|
| 39 | $(TAR) c -C ../../../ . \ |
|---|
| 40 | --exclude=.pc --exclude=.svn --exclude=.git \ |
|---|
| 41 | --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \ |
|---|
| 42 | --exclude=dist | \ |
|---|
| 43 | tar x -C $(PKG_BUILD_DIR)/ |
|---|
| 44 | endef |
|---|
| 45 | endif |
|---|
| 46 | |
|---|
| 47 | define Build/Configure |
|---|
| 48 | endef |
|---|
| 49 | |
|---|
| 50 | ### Templates ### |
|---|
| 51 | |
|---|
| 52 | define Package/luci/libtemplate |
|---|
| 53 | SECTION:=admin |
|---|
| 54 | CATEGORY:=Administration |
|---|
| 55 | TITLE:=LuCI - Lua Configuration Interface |
|---|
| 56 | URL:=http://luci.freifunk-halle.net/ |
|---|
| 57 | MAINTAINER:=Steven Barth <steven-at-midlink-dot-org> |
|---|
| 58 | SUBMENU:=LuCI Libraries |
|---|
| 59 | DEPENDS:=+luci-core |
|---|
| 60 | endef |
|---|
| 61 | |
|---|
| 62 | define Package/luci/fftemplate |
|---|
| 63 | $(call Package/luci/libtemplate) |
|---|
| 64 | SUBMENU:=LuCI Freifunk Support (GERMAN ONLY) |
|---|
| 65 | DEPENDS:=+luci-mod-freifunk |
|---|
| 66 | endef |
|---|
| 67 | |
|---|
| 68 | define Package/luci/httpdtemplate |
|---|
| 69 | $(call Package/luci/libtemplate) |
|---|
| 70 | SUBMENU:=LuCI Non-Forking HTTP-Daemon (EXPERIMENTAL) |
|---|
| 71 | DEPENDS:=+luci-httpd |
|---|
| 72 | endef |
|---|
| 73 | |
|---|
| 74 | define Package/luci/i18ntemplate |
|---|
| 75 | $(call Package/luci/libtemplate) |
|---|
| 76 | SUBMENU:=LuCI Translations |
|---|
| 77 | DEPENDS:=+luci-web |
|---|
| 78 | endef |
|---|
| 79 | |
|---|
| 80 | define Package/luci/thtemplate |
|---|
| 81 | $(call Package/luci/libtemplate) |
|---|
| 82 | SUBMENU:=LuCI Themes |
|---|
| 83 | DEPENDS:=+luci-web |
|---|
| 84 | endef |
|---|
| 85 | |
|---|
| 86 | define Package/luci/webtemplate |
|---|
| 87 | $(call Package/luci/libtemplate) |
|---|
| 88 | SUBMENU:=LuCI Components |
|---|
| 89 | endef |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | define Package/luci/install/template |
|---|
| 93 | $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R |
|---|
| 94 | $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true |
|---|
| 95 | endef |
|---|
| 96 | |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | ### Core package ### |
|---|
| 100 | |
|---|
| 101 | define Package/luci-core |
|---|
| 102 | $(call Package/luci/libtemplate) |
|---|
| 103 | DEPENDS:=+lua +luaposix +bitlib |
|---|
| 104 | TITLE:=LuCI core libraries |
|---|
| 105 | endef |
|---|
| 106 | |
|---|
| 107 | define Package/luci-core/install |
|---|
| 108 | $(call Package/luci/install/template,$(1),libs/core) |
|---|
| 109 | endef |
|---|
| 110 | |
|---|
| 111 | define Package/luci-core/config |
|---|
| 112 | choice |
|---|
| 113 | prompt "Build Target" |
|---|
| 114 | default PACKAGE_luci-core_source |
|---|
| 115 | |
|---|
| 116 | config PACKAGE_luci-core_compile |
|---|
| 117 | bool "Precompiled" |
|---|
| 118 | |
|---|
| 119 | config PACKAGE_luci-core_stripped |
|---|
| 120 | bool "Stripped" |
|---|
| 121 | |
|---|
| 122 | config PACKAGE_luci-core_source |
|---|
| 123 | bool "Full Source" |
|---|
| 124 | |
|---|
| 125 | endchoice |
|---|
| 126 | endef |
|---|
| 127 | |
|---|
| 128 | ifneq ($(CONFIG_PACKAGE_luci-core_compile),) |
|---|
| 129 | LUA_TARGET:=compile |
|---|
| 130 | endif |
|---|
| 131 | |
|---|
| 132 | ifneq ($(CONFIG_PACKAGE_luci-core_stripped),) |
|---|
| 133 | LUA_TARGET:=strip |
|---|
| 134 | endif |
|---|
| 135 | |
|---|
| 136 | |
|---|
| 137 | ### Libraries ### |
|---|
| 138 | define Package/luci-cbi |
|---|
| 139 | $(call Package/luci/libtemplate) |
|---|
| 140 | DEPENDS+=+luci-web +luci-uvl +luci-uci |
|---|
| 141 | TITLE:=Configuration Binding Interface |
|---|
| 142 | endef |
|---|
| 143 | |
|---|
| 144 | define Package/luci-cbi/install |
|---|
| 145 | $(call Package/luci/install/template,$(1),libs/cbi) |
|---|
| 146 | endef |
|---|
| 147 | |
|---|
| 148 | |
|---|
| 149 | define Package/luci-uci |
|---|
| 150 | $(call Package/luci/libtemplate) |
|---|
| 151 | DEPENDS+=+libuci-lua |
|---|
| 152 | TITLE:=High-Level UCI API |
|---|
| 153 | endef |
|---|
| 154 | |
|---|
| 155 | define Package/luci-uci/install |
|---|
| 156 | $(call Package/luci/install/template,$(1),libs/uci) |
|---|
| 157 | endef |
|---|
| 158 | |
|---|
| 159 | |
|---|
| 160 | define Package/luci-fastindex |
|---|
| 161 | $(call Package/luci/libtemplate) |
|---|
| 162 | TITLE:=Fastindex indexing module |
|---|
| 163 | endef |
|---|
| 164 | |
|---|
| 165 | define Package/luci-fastindex/install |
|---|
| 166 | $(call Package/luci/install/template,$(1),libs/fastindex) |
|---|
| 167 | endef |
|---|
| 168 | |
|---|
| 169 | |
|---|
| 170 | define Package/luci-http |
|---|
| 171 | $(call Package/luci/libtemplate) |
|---|
| 172 | TITLE:=HTTP Protocol implementation |
|---|
| 173 | endef |
|---|
| 174 | |
|---|
| 175 | define Package/luci-http/install |
|---|
| 176 | $(call Package/luci/install/template,$(1),libs/http) |
|---|
| 177 | endef |
|---|
| 178 | |
|---|
| 179 | |
|---|
| 180 | define Package/luci-ipkg |
|---|
| 181 | $(call Package/luci/libtemplate) |
|---|
| 182 | TITLE:=LuCI IPKG/OPKG call abstraction library |
|---|
| 183 | endef |
|---|
| 184 | |
|---|
| 185 | define Package/luci-ipkg/install |
|---|
| 186 | $(call Package/luci/install/template,$(1),libs/ipkg) |
|---|
| 187 | endef |
|---|
| 188 | |
|---|
| 189 | |
|---|
| 190 | define Package/luci-json |
|---|
| 191 | $(call Package/luci/libtemplate) |
|---|
| 192 | TITLE:=LuCI JSON Library |
|---|
| 193 | endef |
|---|
| 194 | |
|---|
| 195 | define Package/luci-json/install |
|---|
| 196 | $(call Package/luci/install/template,$(1),libs/json) |
|---|
| 197 | endef |
|---|
| 198 | |
|---|
| 199 | |
|---|
| 200 | define Package/luci-sys |
|---|
| 201 | $(call Package/luci/libtemplate) |
|---|
| 202 | TITLE:=LuCI Linux/POSIX system library |
|---|
| 203 | endef |
|---|
| 204 | |
|---|
| 205 | define Package/luci-sys/install |
|---|
| 206 | $(call Package/luci/install/template,$(1),libs/sys) |
|---|
| 207 | endef |
|---|
| 208 | |
|---|
| 209 | |
|---|
| 210 | define Package/luci-web |
|---|
| 211 | $(call Package/luci/libtemplate) |
|---|
| 212 | DEPENDS+=+luci-http +luci-sys +luci-addons +luci-uci +luci-sgi-cgi |
|---|
| 213 | TITLE:=MVC Webframework |
|---|
| 214 | endef |
|---|
| 215 | |
|---|
| 216 | define Package/luci-web/conffiles |
|---|
| 217 | /etc/config/luci |
|---|
| 218 | endef |
|---|
| 219 | |
|---|
| 220 | define Package/luci-web/install |
|---|
| 221 | $(call Package/luci/install/template,$(1),libs/web) |
|---|
| 222 | endef |
|---|
| 223 | |
|---|
| 224 | |
|---|
| 225 | define Package/luci-uvl |
|---|
| 226 | $(call Package/luci/libtemplate) |
|---|
| 227 | DEPENDS+=+luci-sys +luci-uci +luci-core |
|---|
| 228 | TITLE:=UVL - UCI Validation Layer |
|---|
| 229 | endef |
|---|
| 230 | |
|---|
| 231 | define Package/luci-uvl/install |
|---|
| 232 | $(call Package/luci/install/template,$(1),libs/uvl) |
|---|
| 233 | endef |
|---|
| 234 | |
|---|
| 235 | |
|---|
| 236 | |
|---|
| 237 | ### HTTPD ### |
|---|
| 238 | |
|---|
| 239 | define Package/luci-httpd |
|---|
| 240 | $(call Package/luci/httpdtemplate) |
|---|
| 241 | DEPENDS:=+luci-http +luasocket |
|---|
| 242 | TITLE:=Server Core |
|---|
| 243 | endef |
|---|
| 244 | |
|---|
| 245 | define Package/luci-httpd/install |
|---|
| 246 | $(call Package/luci/install/template,$(1),libs/httpd) |
|---|
| 247 | endef |
|---|
| 248 | |
|---|
| 249 | |
|---|
| 250 | |
|---|
| 251 | ### Community Packages ### |
|---|
| 252 | |
|---|
| 253 | define Package/luci-freifunk-community |
|---|
| 254 | $(call Package/luci/fftemplate) |
|---|
| 255 | DEPENDS+= \ |
|---|
| 256 | +luci-sgi-cgi +luci-app-splash +luci-app-olsr \ |
|---|
| 257 | +luci-app-ffwizard-leipzig \ |
|---|
| 258 | +luci-theme-fledermaus \ |
|---|
| 259 | +luci-i18n-german \ |
|---|
| 260 | +olsrd-luci +olsrd-luci-mod-dyn-gw +olsrd-luci-mod-txtinfo +olsrd-luci-mod-nameservice \ |
|---|
| 261 | +kmod-tun +ip |
|---|
| 262 | TITLE:=Freifunk Community Meta-Package |
|---|
| 263 | endef |
|---|
| 264 | |
|---|
| 265 | define Package/luci-freifunk-community/install |
|---|
| 266 | $(call Package/luci/install/template,$(1),applications/freifunk-community) |
|---|
| 267 | endef |
|---|
| 268 | |
|---|
| 269 | ### Modules ### |
|---|
| 270 | |
|---|
| 271 | define Package/luci-admin-core |
|---|
| 272 | $(call Package/luci/webtemplate) |
|---|
| 273 | DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english |
|---|
| 274 | TITLE:=Web UI Core Module |
|---|
| 275 | endef |
|---|
| 276 | |
|---|
| 277 | define Package/luci-admin-core/install |
|---|
| 278 | $(call Package/luci/install/template,$(1),modules/admin-core) |
|---|
| 279 | endef |
|---|
| 280 | |
|---|
| 281 | |
|---|
| 282 | define Package/luci-admin-mini |
|---|
| 283 | $(call Package/luci/webtemplate) |
|---|
| 284 | DEPENDS+=+luci-admin-core |
|---|
| 285 | TITLE:=LuCI Essentials - stripped down and user-friendly |
|---|
| 286 | endef |
|---|
| 287 | |
|---|
| 288 | define Package/luci-admin-mini/install |
|---|
| 289 | $(call Package/luci/install/template,$(1),modules/admin-mini) |
|---|
| 290 | endef |
|---|
| 291 | |
|---|
| 292 | |
|---|
| 293 | define Package/luci-admin-full |
|---|
| 294 | $(call Package/luci/webtemplate) |
|---|
| 295 | DEPENDS+=+luci-admin-core +luci-ipkg |
|---|
| 296 | TITLE:=LuCI Administration - full-featured for full control |
|---|
| 297 | endef |
|---|
| 298 | |
|---|
| 299 | define Package/luci-admin-full/install |
|---|
| 300 | $(call Package/luci/install/template,$(1),modules/admin-full) |
|---|
| 301 | endef |
|---|
| 302 | |
|---|
| 303 | |
|---|
| 304 | define Package/luci-admin-rpc |
|---|
| 305 | $(call Package/luci/webtemplate) |
|---|
| 306 | DEPENDS+=+luci-json |
|---|
| 307 | TITLE:=LuCI RPC - JSON-RPC API |
|---|
| 308 | endef |
|---|
| 309 | |
|---|
| 310 | define Package/luci-admin-rpc/install |
|---|
| 311 | $(call Package/luci/install/template,$(1),modules/rpc) |
|---|
| 312 | endef |
|---|
| 313 | |
|---|
| 314 | |
|---|
| 315 | define Package/luci-mod-freifunk |
|---|
| 316 | $(call Package/luci/fftemplate) |
|---|
| 317 | DEPENDS:=+luci-admin-full |
|---|
| 318 | TITLE:=LuCI Freifunk module |
|---|
| 319 | endef |
|---|
| 320 | |
|---|
| 321 | define Package/luci-mod-freifunk/conffiles |
|---|
| 322 | /etc/config/freifunk |
|---|
| 323 | endef |
|---|
| 324 | |
|---|
| 325 | define Package/luci-mod-freifunk/install |
|---|
| 326 | $(call Package/luci/install/template,$(1),modules/freifunk) |
|---|
| 327 | endef |
|---|
| 328 | |
|---|
| 329 | |
|---|
| 330 | |
|---|
| 331 | ### Applications ### |
|---|
| 332 | |
|---|
| 333 | define Package/luci-app-ffwizard-leipzig |
|---|
| 334 | $(call Package/luci/fftemplate) |
|---|
| 335 | TITLE:=Freifunk Leipzig configuration wizard |
|---|
| 336 | endef |
|---|
| 337 | |
|---|
| 338 | define Package/luci-app-ffwizard-leipzig/install |
|---|
| 339 | $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig) |
|---|
| 340 | endef |
|---|
| 341 | |
|---|
| 342 | |
|---|
| 343 | define Package/luci-app-firewall |
|---|
| 344 | $(call Package/luci/webtemplate) |
|---|
| 345 | DEPENDS+=+luci-admin-core |
|---|
| 346 | TITLE:=Firewall and Portforwarding application |
|---|
| 347 | endef |
|---|
| 348 | |
|---|
| 349 | define Package/luci-app-firewall/install |
|---|
| 350 | $(call Package/luci/install/template,$(1),applications/luci-fw) |
|---|
| 351 | endef |
|---|
| 352 | |
|---|
| 353 | |
|---|
| 354 | define Package/luci-app-olsr |
|---|
| 355 | $(call Package/luci/webtemplate) |
|---|
| 356 | DEPENDS+=+luci-admin-full +olsrd-luci +olsrd-luci-mod-txtinfo |
|---|
| 357 | TITLE:=OLSR configuration and status module |
|---|
| 358 | endef |
|---|
| 359 | |
|---|
| 360 | define Package/luci-app-olsr/install |
|---|
| 361 | $(call Package/luci/install/template,$(1),applications/luci-olsr) |
|---|
| 362 | endef |
|---|
| 363 | |
|---|
| 364 | |
|---|
| 365 | define Package/luci-app-qos |
|---|
| 366 | $(call Package/luci/webtemplate) |
|---|
| 367 | DEPENDS+=+luci-admin-core +qos-scripts |
|---|
| 368 | TITLE:=Quality of Service configuration module |
|---|
| 369 | endef |
|---|
| 370 | |
|---|
| 371 | define Package/luci-app-qos/install |
|---|
| 372 | $(call Package/luci/install/template,$(1),applications/luci-qos) |
|---|
| 373 | endef |
|---|
| 374 | |
|---|
| 375 | |
|---|
| 376 | define Package/luci-app-splash |
|---|
| 377 | $(call Package/luci/fftemplate) |
|---|
| 378 | DEPENDS+=+luasocket |
|---|
| 379 | TITLE:=Freifunk DHCP-Splash application |
|---|
| 380 | endef |
|---|
| 381 | |
|---|
| 382 | define Package/luci-app-splash/conffiles |
|---|
| 383 | /etc/config/luci_splash |
|---|
| 384 | endef |
|---|
| 385 | |
|---|
| 386 | define Package/luci-app-splash/install |
|---|
| 387 | $(call Package/luci/install/template,$(1),applications/luci-splash) |
|---|
| 388 | endef |
|---|
| 389 | |
|---|
| 390 | |
|---|
| 391 | define Package/luci-app-statistics |
|---|
| 392 | $(call Package/luci/webtemplate) |
|---|
| 393 | DEPENDS+=+luci-admin-full +collectd +collectd-mod-rrdtool1 +rrdtool1 |
|---|
| 394 | TITLE:=LuCI Statistics Application |
|---|
| 395 | endef |
|---|
| 396 | |
|---|
| 397 | define Package/luci-app-statistics/conffiles |
|---|
| 398 | /etc/config/luci_statistics |
|---|
| 399 | endef |
|---|
| 400 | |
|---|
| 401 | define Package/luci-app-statistics/install |
|---|
| 402 | $(call Package/luci/install/template,$(1),applications/luci-statistics) |
|---|
| 403 | endef |
|---|
| 404 | |
|---|
| 405 | |
|---|
| 406 | define Package/luci-app-upnp |
|---|
| 407 | $(call Package/luci/webtemplate) |
|---|
| 408 | DEPENDS+=+luci-admin-core +miniupnpd |
|---|
| 409 | TITLE:=Universal Plug & Play configuration module |
|---|
| 410 | endef |
|---|
| 411 | |
|---|
| 412 | define Package/luci-app-upnp/install |
|---|
| 413 | $(call Package/luci/install/template,$(1),applications/luci-upnp) |
|---|
| 414 | endef |
|---|
| 415 | |
|---|
| 416 | |
|---|
| 417 | define Package/luci-app-ntpc |
|---|
| 418 | $(call Package/luci/webtemplate) |
|---|
| 419 | DEPENDS+=+luci-admin-core +ntpclient |
|---|
| 420 | TITLE:=NTP time synchronisation client configuration module |
|---|
| 421 | endef |
|---|
| 422 | |
|---|
| 423 | define Package/luci-app-ntpc/install |
|---|
| 424 | $(call Package/luci/install/template,$(1),applications/luci-ntpc) |
|---|
| 425 | endef |
|---|
| 426 | |
|---|
| 427 | |
|---|
| 428 | define Package/luci-app-ddns |
|---|
| 429 | $(call Package/luci/webtemplate) |
|---|
| 430 | DEPENDS+=+luci-admin-core +ddns-scripts |
|---|
| 431 | TITLE:=Dynamic DNS configuration module |
|---|
| 432 | endef |
|---|
| 433 | |
|---|
| 434 | define Package/luci-app-ddns/install |
|---|
| 435 | $(call Package/luci/install/template,$(1),applications/luci-ddns) |
|---|
| 436 | endef |
|---|
| 437 | |
|---|
| 438 | |
|---|
| 439 | define Package/luci-app-samba |
|---|
| 440 | $(call Package/luci/webtemplate) |
|---|
| 441 | DEPENDS+=+luci-admin-full +samba3 |
|---|
| 442 | TITLE:=Network Shares - Samba SMB/CIFS module |
|---|
| 443 | endef |
|---|
| 444 | |
|---|
| 445 | define Package/luci-app-samba/install |
|---|
| 446 | $(call Package/luci/install/template,$(1),applications/luci-samba) |
|---|
| 447 | endef |
|---|
| 448 | |
|---|
| 449 | |
|---|
| 450 | define Package/luci-app-uvc_streamer |
|---|
| 451 | $(call Package/luci/webtemplate) |
|---|
| 452 | DEPENDS+=+luci-admin-full +uvc-streamer |
|---|
| 453 | TITLE:=Webcam Streaming - UVC-Streamer module |
|---|
| 454 | endef |
|---|
| 455 | |
|---|
| 456 | define Package/luci-app-uvc_streamer/install |
|---|
| 457 | $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer) |
|---|
| 458 | endef |
|---|
| 459 | |
|---|
| 460 | |
|---|
| 461 | define Package/luci-app-p910nd |
|---|
| 462 | $(call Package/luci/webtemplate) |
|---|
| 463 | DEPENDS+=+luci-admin-full +p910nd |
|---|
| 464 | TITLE:=p910nd - Printer server module |
|---|
| 465 | endef |
|---|
| 466 | |
|---|
| 467 | define Package/luci-app-p910nd/install |
|---|
| 468 | $(call Package/luci/install/template,$(1),applications/luci-p910nd) |
|---|
| 469 | endef |
|---|
| 470 | |
|---|
| 471 | |
|---|
| 472 | ### Server Gateway Interfaces ### |
|---|
| 473 | |
|---|
| 474 | define Package/luci-sgi-cgi |
|---|
| 475 | $(call Package/luci/libtemplate) |
|---|
| 476 | TITLE:=SGI for CGI |
|---|
| 477 | endef |
|---|
| 478 | |
|---|
| 479 | define Package/luci-sgi-cgi/install |
|---|
| 480 | $(call Package/luci/install/template,$(1),libs/sgi-cgi) |
|---|
| 481 | endef |
|---|
| 482 | |
|---|
| 483 | define Package/luci-sgi-luci |
|---|
| 484 | $(call Package/luci/libtemplate) |
|---|
| 485 | DEPENDS+=+luci-httpd |
|---|
| 486 | TITLE:=SGI for LuCI HTTPD |
|---|
| 487 | endef |
|---|
| 488 | |
|---|
| 489 | define Package/luci-sgi-luci/install |
|---|
| 490 | $(call Package/luci/install/template,$(1),libs/sgi-luci) |
|---|
| 491 | endef |
|---|
| 492 | |
|---|
| 493 | define Package/luci-sgi-webuci |
|---|
| 494 | $(call Package/luci/libtemplate) |
|---|
| 495 | TITLE:=SGI for Webuci |
|---|
| 496 | endef |
|---|
| 497 | |
|---|
| 498 | define Package/luci-sgi-webuci/install |
|---|
| 499 | $(call Package/luci/install/template,$(1),libs/sgi-webuci) |
|---|
| 500 | endef |
|---|
| 501 | |
|---|
| 502 | ### Themes ### |
|---|
| 503 | define Package/luci-theme-fledermaus |
|---|
| 504 | $(call Package/luci/fftemplate) |
|---|
| 505 | DEPENDS:=+luci-web |
|---|
| 506 | TITLE:=Fledermaus Theme |
|---|
| 507 | endef |
|---|
| 508 | |
|---|
| 509 | define Package/luci-theme-fledermaus/install |
|---|
| 510 | $(call Package/luci/install/template,$(1),themes/fledermaus) |
|---|
| 511 | endef |
|---|
| 512 | |
|---|
| 513 | define Package/luci-theme-openwrt |
|---|
| 514 | $(call Package/luci/thtemplate) |
|---|
| 515 | TITLE:=OpenWRT.org (default) |
|---|
| 516 | endef |
|---|
| 517 | |
|---|
| 518 | define Package/luci-theme-openwrt/install |
|---|
| 519 | $(call Package/luci/install/template,$(1),themes/openwrt.org) |
|---|
| 520 | endef |
|---|
| 521 | |
|---|
| 522 | define Package/luci-theme-openwrtlight |
|---|
| 523 | $(call Package/luci/thtemplate) |
|---|
| 524 | TITLE:=OpenWRT.org - light variant without images |
|---|
| 525 | endef |
|---|
| 526 | |
|---|
| 527 | define Package/luci-theme-openwrtlight/install |
|---|
| 528 | $(call Package/luci/install/template,$(1),themes/openwrt-light) |
|---|
| 529 | endef |
|---|
| 530 | |
|---|
| 531 | |
|---|
| 532 | ### Translations ### |
|---|
| 533 | define Package/luci-i18n-german |
|---|
| 534 | $(call Package/luci/i18ntemplate) |
|---|
| 535 | TITLE:=German |
|---|
| 536 | endef |
|---|
| 537 | |
|---|
| 538 | define Package/luci-i18n-german/install |
|---|
| 539 | $(call Package/luci/install/template,$(1),i18n/german) |
|---|
| 540 | endef |
|---|
| 541 | |
|---|
| 542 | |
|---|
| 543 | define Package/luci-i18n-english |
|---|
| 544 | $(call Package/luci/i18ntemplate) |
|---|
| 545 | TITLE:=English |
|---|
| 546 | endef |
|---|
| 547 | |
|---|
| 548 | define Package/luci-i18n-english/install |
|---|
| 549 | $(call Package/luci/install/template,$(1),i18n/english) |
|---|
| 550 | endef |
|---|
| 551 | |
|---|
| 552 | |
|---|
| 553 | define Package/luci-i18n-french |
|---|
| 554 | $(call Package/luci/i18ntemplate) |
|---|
| 555 | TITLE:=French (by Florian Fainelli) |
|---|
| 556 | endef |
|---|
| 557 | |
|---|
| 558 | define Package/luci-i18n-french/install |
|---|
| 559 | $(call Package/luci/install/template,$(1),i18n/french) |
|---|
| 560 | endef |
|---|
| 561 | |
|---|
| 562 | |
|---|
| 563 | define Package/luci-i18n-russian |
|---|
| 564 | $(call Package/luci/i18ntemplate) |
|---|
| 565 | TITLE:=Russian (by Skryabin Dmitry) |
|---|
| 566 | endef |
|---|
| 567 | |
|---|
| 568 | define Package/luci-i18n-russian/install |
|---|
| 569 | $(call Package/luci/install/template,$(1),i18n/russian) |
|---|
| 570 | endef |
|---|
| 571 | |
|---|
| 572 | |
|---|
| 573 | |
|---|
| 574 | ### Compile ### |
|---|
| 575 | ifneq ($(CONFIG_PACKAGE_luci-core),) |
|---|
| 576 | PKG_SELECTED_MODULES+=libs/core |
|---|
| 577 | endif |
|---|
| 578 | ifneq ($(CONFIG_PACKAGE_luci-cbi),) |
|---|
| 579 | PKG_SELECTED_MODULES+=libs/cbi |
|---|
| 580 | endif |
|---|
| 581 | ifneq ($(CONFIG_PACKAGE_luci-fastindex),) |
|---|
| 582 | PKG_SELECTED_MODULES+=libs/fastindex |
|---|
| 583 | endif |
|---|
| 584 | ifneq ($(CONFIG_PACKAGE_luci-http),) |
|---|
| 585 | PKG_SELECTED_MODULES+=libs/http |
|---|
| 586 | endif |
|---|
| 587 | ifneq ($(CONFIG_PACKAGE_luci-ipkg),) |
|---|
| 588 | PKG_SELECTED_MODULES+=libs/ipkg |
|---|
| 589 | endif |
|---|
| 590 | ifneq ($(CONFIG_PACKAGE_luci-json),) |
|---|
| 591 | PKG_SELECTED_MODULES+=libs/json |
|---|
| 592 | endif |
|---|
| 593 | ifneq ($(CONFIG_PACKAGE_luci-uci),) |
|---|
| 594 | PKG_SELECTED_MODULES+=libs/uci |
|---|
| 595 | endif |
|---|
| 596 | ifneq ($(CONFIG_PACKAGE_luci-sys),) |
|---|
| 597 | PKG_SELECTED_MODULES+=libs/sys |
|---|
| 598 | endif |
|---|
| 599 | ifneq ($(CONFIG_PACKAGE_luci-web),) |
|---|
| 600 | PKG_SELECTED_MODULES+=libs/web |
|---|
| 601 | endif |
|---|
| 602 | ifneq ($(CONFIG_PACKAGE_luci-uvl),) |
|---|
| 603 | PKG_SELECTED_MODULES+=libs/uvl |
|---|
| 604 | endif |
|---|
| 605 | |
|---|
| 606 | ifneq ($(CONFIG_PACKAGE_luci-httpd),) |
|---|
| 607 | PKG_SELECTED_MODULES+=libs/httpd |
|---|
| 608 | endif |
|---|
| 609 | |
|---|
| 610 | ifneq ($(CONFIG_PACKAGE_luci-admin-core),) |
|---|
| 611 | PKG_SELECTED_MODULES+=modules/admin-core |
|---|
| 612 | endif |
|---|
| 613 | ifneq ($(CONFIG_PACKAGE_luci-admin-mini),) |
|---|
| 614 | PKG_SELECTED_MODULES+=modules/admin-mini |
|---|
| 615 | endif |
|---|
| 616 | ifneq ($(CONFIG_PACKAGE_luci-admin-full),) |
|---|
| 617 | PKG_SELECTED_MODULES+=modules/admin-full |
|---|
| 618 | endif |
|---|
| 619 | ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),) |
|---|
| 620 | PKG_SELECTED_MODULES+=modules/rpc |
|---|
| 621 | endif |
|---|
| 622 | ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),) |
|---|
| 623 | PKG_SELECTED_MODULES+=modules/freifunk |
|---|
| 624 | endif |
|---|
| 625 | |
|---|
| 626 | ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),) |
|---|
| 627 | PKG_SELECTED_MODULES+=applications/freifunk-community |
|---|
| 628 | endif |
|---|
| 629 | |
|---|
| 630 | ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),) |
|---|
| 631 | PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig |
|---|
| 632 | endif |
|---|
| 633 | ifneq ($(CONFIG_PACKAGE_luci-app-firewall),) |
|---|
| 634 | PKG_SELECTED_MODULES+=applications/luci-fw |
|---|
| 635 | endif |
|---|
| 636 | ifneq ($(CONFIG_PACKAGE_luci-app-olsr),) |
|---|
| 637 | PKG_SELECTED_MODULES+=applications/luci-olsr |
|---|
| 638 | endif |
|---|
| 639 | ifneq ($(CONFIG_PACKAGE_luci-app-qos),) |
|---|
| 640 | PKG_SELECTED_MODULES+=applications/luci-qos |
|---|
| 641 | endif |
|---|
| 642 | ifneq ($(CONFIG_PACKAGE_luci-app-splash),) |
|---|
| 643 | PKG_SELECTED_MODULES+=applications/luci-splash |
|---|
| 644 | endif |
|---|
| 645 | ifneq ($(CONFIG_PACKAGE_luci-app-statistics),) |
|---|
| 646 | PKG_SELECTED_MODULES+=applications/luci-statistics |
|---|
| 647 | endif |
|---|
| 648 | ifneq ($(CONFIG_PACKAGE_luci-app-upnp),) |
|---|
| 649 | PKG_SELECTED_MODULES+=applications/luci-upnp |
|---|
| 650 | endif |
|---|
| 651 | ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),) |
|---|
| 652 | PKG_SELECTED_MODULES+=applications/luci-ntpc |
|---|
| 653 | endif |
|---|
| 654 | ifneq ($(CONFIG_PACKAGE_luci-app-ddns),) |
|---|
| 655 | PKG_SELECTED_MODULES+=applications/luci-ddns |
|---|
| 656 | endif |
|---|
| 657 | ifneq ($(CONFIG_PACKAGE_luci-app-samba),) |
|---|
| 658 | PKG_SELECTED_MODULES+=applications/luci-samba |
|---|
| 659 | endif |
|---|
| 660 | ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),) |
|---|
| 661 | PKG_SELECTED_MODULES+=applications/luci-uvc_streamer |
|---|
| 662 | endif |
|---|
| 663 | ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),) |
|---|
| 664 | PKG_SELECTED_MODULES+=applications/luci-p910nd |
|---|
| 665 | endif |
|---|
| 666 | |
|---|
| 667 | |
|---|
| 668 | ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),) |
|---|
| 669 | PKG_SELECTED_MODULES+=libs/sgi-cgi |
|---|
| 670 | endif |
|---|
| 671 | ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),) |
|---|
| 672 | PKG_SELECTED_MODULES+=libs/sgi-luci |
|---|
| 673 | endif |
|---|
| 674 | ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),) |
|---|
| 675 | PKG_SELECTED_MODULES+=libs/sgi-webuci |
|---|
| 676 | endif |
|---|
| 677 | |
|---|
| 678 | ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),) |
|---|
| 679 | PKG_SELECTED_MODULES+=themes/fledermaus |
|---|
| 680 | endif |
|---|
| 681 | ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),) |
|---|
| 682 | PKG_SELECTED_MODULES+=themes/openwrt.org |
|---|
| 683 | endif |
|---|
| 684 | ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),) |
|---|
| 685 | PKG_SELECTED_MODULES+=themes/openwrt-light |
|---|
| 686 | endif |
|---|
| 687 | |
|---|
| 688 | ifneq ($(CONFIG_PACKAGE_luci-i18n-german),) |
|---|
| 689 | PKG_SELECTED_MODULES+=i18n/german |
|---|
| 690 | endif |
|---|
| 691 | ifneq ($(CONFIG_PACKAGE_luci-i18n-english),) |
|---|
| 692 | PKG_SELECTED_MODULES+=i18n/english |
|---|
| 693 | endif |
|---|
| 694 | ifneq ($(CONFIG_PACKAGE_luci-i18n-french),) |
|---|
| 695 | PKG_SELECTED_MODULES+=i18n/french |
|---|
| 696 | endif |
|---|
| 697 | ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),) |
|---|
| 698 | PKG_SELECTED_MODULES+=i18n/russian |
|---|
| 699 | endif |
|---|
| 700 | |
|---|
| 701 | |
|---|
| 702 | MAKE_FLAGS += \ |
|---|
| 703 | MODULES="$(PKG_SELECTED_MODULES)" \ |
|---|
| 704 | LUA_TARGET="$(LUA_TARGET)" \ |
|---|
| 705 | LUA_SHLIBS="-llua -lm" \ |
|---|
| 706 | CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \ |
|---|
| 707 | LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \ |
|---|
| 708 | OS="Linux" |
|---|
| 709 | |
|---|
| 710 | |
|---|
| 711 | $(eval $(call BuildPackage,luci-core)) |
|---|
| 712 | $(eval $(call BuildPackage,luci-cbi)) |
|---|
| 713 | $(eval $(call BuildPackage,luci-fastindex)) |
|---|
| 714 | $(eval $(call BuildPackage,luci-http)) |
|---|
| 715 | $(eval $(call BuildPackage,luci-ipkg)) |
|---|
| 716 | $(eval $(call BuildPackage,luci-json)) |
|---|
| 717 | $(eval $(call BuildPackage,luci-uci)) |
|---|
| 718 | $(eval $(call BuildPackage,luci-sys)) |
|---|
| 719 | $(eval $(call BuildPackage,luci-web)) |
|---|
| 720 | $(eval $(call BuildPackage,luci-uvl)) |
|---|
| 721 | |
|---|
| 722 | $(eval $(call BuildPackage,luci-httpd)) |
|---|
| 723 | |
|---|
| 724 | $(eval $(call BuildPackage,luci-admin-core)) |
|---|
| 725 | $(eval $(call BuildPackage,luci-admin-mini)) |
|---|
| 726 | $(eval $(call BuildPackage,luci-admin-full)) |
|---|
| 727 | $(eval $(call BuildPackage,luci-admin-rpc)) |
|---|
| 728 | $(eval $(call BuildPackage,luci-mod-freifunk)) |
|---|
| 729 | |
|---|
| 730 | $(eval $(call BuildPackage,luci-freifunk-community)) |
|---|
| 731 | |
|---|
| 732 | $(eval $(call BuildPackage,luci-app-ffwizard-leipzig)) |
|---|
| 733 | $(eval $(call BuildPackage,luci-app-firewall)) |
|---|
| 734 | $(eval $(call BuildPackage,luci-app-olsr)) |
|---|
| 735 | $(eval $(call BuildPackage,luci-app-qos)) |
|---|
| 736 | $(eval $(call BuildPackage,luci-app-splash)) |
|---|
| 737 | $(eval $(call BuildPackage,luci-app-statistics)) |
|---|
| 738 | $(eval $(call BuildPackage,luci-app-upnp)) |
|---|
| 739 | $(eval $(call BuildPackage,luci-app-ntpc)) |
|---|
| 740 | $(eval $(call BuildPackage,luci-app-ddns)) |
|---|
| 741 | $(eval $(call BuildPackage,luci-app-samba)) |
|---|
| 742 | $(eval $(call BuildPackage,luci-app-uvc_streamer)) |
|---|
| 743 | $(eval $(call BuildPackage,luci-app-p910nd)) |
|---|
| 744 | |
|---|
| 745 | $(eval $(call BuildPackage,luci-sgi-cgi)) |
|---|
| 746 | $(eval $(call BuildPackage,luci-sgi-luci)) |
|---|
| 747 | $(eval $(call BuildPackage,luci-sgi-webuci)) |
|---|
| 748 | |
|---|
| 749 | $(eval $(call BuildPackage,luci-theme-fledermaus)) |
|---|
| 750 | $(eval $(call BuildPackage,luci-theme-openwrt)) |
|---|
| 751 | $(eval $(call BuildPackage,luci-theme-openwrtlight)) |
|---|
| 752 | |
|---|
| 753 | $(eval $(call BuildPackage,luci-i18n-german)) |
|---|
| 754 | $(eval $(call BuildPackage,luci-i18n-english)) |
|---|
| 755 | $(eval $(call BuildPackage,luci-i18n-french)) |
|---|
| 756 | $(eval $(call BuildPackage,luci-i18n-russian)) |
|---|