Adding a Package to garchive

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
jamesarbrown
Contributor
Posts: 98
Joined: Sat Aug 16, 2008 11:14 am

Adding a Package to garchive

Post by jamesarbrown »

Hi,

Does anyone know the required steps to add a package to the gar?

I was experimenting with adding monit to the build. Created a "monit" folder under utils, added a Makefile and checksum etc (copied basis from which package), but I am not familar with the gar system. There is something somewhere else to implement it into the package as the rootfs image does not include monit.

Any help appreciated.

Thanks

James

Code: Select all

GARNAME = monit
GARVERSION = 5.2.3
CATEGORIES = utils
MASTER_SITES  = http://mmonit.com/monit/dist/
DISTFILES = monit-5.2.3.tar.gz
LICENSE = GPL2

DESCRIPTION =
define BLURB
endef

DEPENDS = lang/c

WORKSRC = $(WORKDIR)/$(GARNAME)

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS     = $(WORKSRC)/Makefile
INSTALL_SCRIPTS   = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS) --build=$(GARBUILD) --host=$(GARHOST)

include ../../gar.mk
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Adding a Package to garchive

Post by Pablo »

You need to add some things to your ~/.minimyth/minimyth.conf.mk

Code: Select all

# Lists additional packages to build when minimyth is built.
mm_USER_PACKAGES          ?=
# Lists additional binaries to include in the MiniMyth image
# by adding to the lists found in minimyth-bin-list* and bins-share-list files.
mm_USER_BIN_LIST          ?=
# Lists additional configs to include in the MiniMyth image
# by adding to the lists found in minimyth-etc-list* and extras-etc-list files.
mm_USER_ETC_LIST          ?=
# Lists additional libraries to include in the MiniMyth image
# by adding to the lists found in minimyth-lib-list* and extras-lib-list files.
mm_USER_LIB_LIST          ?=
# Lists additional files to remove from the MiniMyth image
# by adding to the lists found in minimyth-remove-list* and extras-remote-list files.
mm_USER_REMOVE_LIST       ?=
# Lists additional data to include in the MiniMyth image
# by adding to the lists found in minimyth-share-list* and extras-share-list files.
mm_USER_SHARE_LIST        ?=
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.
jamesarbrown
Contributor
Posts: 98
Joined: Sat Aug 16, 2008 11:14 am

Re: Adding a Package to garchive

Post by jamesarbrown »

Hi Pablo,

Appreciate if you can help. I am trying to add monit and joe to the build system, but getting the following during "make build"

copying binaries
copying binaries: warning: binary "joe" not found.
copying binaries: warning: binary "monit" not found.
copying etcs

I have entered for instance the script/utils/joe directory and a make clean, make, seems to build the package ok.

James

minimyth.conf.mk

Code: Select all

mm_HOME                   ?= /storage/minimyth/gar-minimyth-0.24.0-76b1
mm_USER_PACKAGES          ?= utils/monit utils/joe
mm_USER_BIN_LIST          ?= monit joe
mm_MYTH_VERSION           ?= 0.23
mm_XORG_VERSION           ?= 7.4
GARCHIVEROOT              ?= /storage/minimyth/source
script/utils/joe/Makefile

Code: Select all

GARNAME = joe
GARVERSION = 3.7
CATEGORIES = utils
MASTER_SITES = http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/j/project/jo/joe-editor/JOE%20sources/$(DISTNAME)/
DISTFILES = $(DISTNAME).tar.gz
LICENSE = GPL2

DESCRIPTION =
define BLURB
endef

DEPENDS = lang/c

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS     = $(WORKSRC)/Makefile
INSTALL_SCRIPTS   = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS) --build=$(GARBUILD) --host=$(GARHOST)

include ../../gar.mk
Post Reply