Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick
FFS Gluon
Commits
16d7eafd
Commit
16d7eafd
authored
8 years ago
by
Jan-Tarek Butt
Committed by
Jan-Philipp Litza
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add PKG Makefile for hoodfile #789
parent
4e7878c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/ffnw-hoods/Makefile
+38
-0
38 additions, 0 deletions
package/ffnw-hoods/Makefile
with
38 additions
and
0 deletions
package/ffnw-hoods/Makefile
0 → 100644
+
38
−
0
View file @
16d7eafd
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
ffnw-hoods
PKG_VERSION
:=
1
PKG_RELEASE
:=
1
PKG_BUILD_DEPENDS
:=
luci-base/host lua-cjson/host
PKG_BUILD_DIR
:=
$(
BUILD_DIR
)
/
$(
PKG_NAME
)
include
$(GLUONDIR)/include/package.mk
define
Package/ffnw-hoods
SECTION
:=
networke
CATEGORY
:=
Freifunk Nordwest
TITLE
:=
Hoodjson file
endef
define
Package/ffnw-hoods/description
Hoodjson
file
for
defined
hoods
endef
define
Build/Prepare
mkdir
-p
$(PKG_BUILD_DIR)
endef
define
Build/Configure
endef
define
Build/Compile
endef
define
Package/ffnw-hoods/install
$(INSTALL_DIR)
$(1)/lib/ffnw/hoods
lua -e 'local cjson = require("cjson"); print(cjson.encode(cjson.decode(assert(io.open("./files/lib/ffnw/hoods/hoods.json")
:
read("*a")))))' > $(1)/lib/ffnw/hoods/hoods.json
endef
$(
eval
$(
call BuildPackage,ffnw-hoods
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment