[Slapt-get-devel] slapt-get CVS Makefile update w/ updated
Makefile
Derek Benson
zhizaki at hotmail.com
Tue Sep 27 02:37:08 EDT 2005
Jason,
Thanks for the feedback. I followed your advice and renamed the variables to
something with a more proper overtone and made some minor progress since
this afternoon when I first emailed. I've added a .tgz install ability. It's
a bit primative, but it also lead to an update in the "make pkg" script and
I'll be happy to edit the man page soon to reflect the update if ya'll
approve. I know it's not much, but it took sometime and I would like to
share it. Sorry if I seem a little eager, but I've been looking something to
contribute to and this seems like a definate worthy cause. I've been toying
with several naming conventions for all the new stuff to fit into what is
present already, but if you have anymore suggestions, then let me know.
Anyway, back to what I've done so far:
#Variables that I have created:
PKG_DEST_DIR=/opt/packages/
PKG_LABEL=$(PACKAGE)-$(VERSION)-$(ARCH)-$(RELEASE)
PKG_TGZ=$(PKG_LABEL).tgz
PKG_PATH=$(PKG_DEST_DIR)$(TGZ_NAME)
# Added all of those to the bottom of the variables, for quick reference.
Still checking into how to
# add a possible feature to change PKG_DEST_DIR from the command line. Will
notify ya'll when I
# do.
# Additional script I modified at the end of ` dopkg ` and added for `
pkg-intsall `.
dopkg:
...
...
...
...
-( cd pkg; /sbin/makepkg -1 y -c n $(PKG_TGZ) )
( if [ ! -d $(PKG_DEST_DIR) ]; then mkdir -p $(PKG_DEST_DIR); else echo
"$(PKG_DEST_DIR) exists."; fi; )
( cd pkg; /usr/bin/mv -v $(PKG_TGZ) $(PKG_DEST_DIR) )
po_file:
...
...
...
...
pkg-install:
clear
if [ -f $(PKG_PATH) ]; the installpkg $(PKG_PATH); fi
So, that is honestly all I have accomplished through trial and error and a
few "BASH for Beginners" texts. The `installpkg` has the -infobox option
which pops up with the slackware signature turquiose installation screen,
but I thought that might be a bit overboard, yet worth bringing up. So I'm
off to hack my router and hopefully some scripting with slapt-get. I'll send
you any more nifty updates I come up with. I have included the new Makefile
as well for review. See if anyone else thinks it's groovy. Thanks!
Thanks again for the advice,
Derek "ZhiZaki" Benson
>From: Jason Woodward <woodwardj at jaos.org>
>To: "Derek Benson" <zhizaki at hotmail.com>
>CC: slapt-get-devel at jaos.org
>Subject: Re: [Slapt-get-devel] slapt-get CVS Makefile update
>Date: Mon, 26 Sep 2005 19:36:50 -0400
>MIME-Version: 1.0
>Received: from jaos.org ([65.188.56.254]) by mc3-f40.hotmail.com with
>Microsoft SMTPSVC(6.0.3790.211); Mon, 26 Sep 2005 16:47:33 -0700
>Received: from jaos.org (jaos.org [10.1.1.69])by jaos.org
>(8.13.4/8.13.4/Debian-3) with ESMTP id j8QNaot8032520;Mon, 26 Sep 2005
>19:36:51 -0400
>X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
>Lines: 23
>X-Mailer: PerlWebmail version 3 (http://software.jaos.org)
>References: BAY104-F26DEA1A1E9A0519F1E9AC7AD8B0 at phx.gbl
>Return-Path: woodwardj at jaos.org
>X-OriginalArrivalTime: 26 Sep 2005 23:47:33.0541 (UTC)
>FILETIME=[AA54A550:01C5C2F4]
>
>Hi Derek,
>
> > This is my first time submitting an sort of update to anyone in the
>linux
> > world, let alone for my favorite distro. I added a line in the Makefile
>to
> > move the tarball to a specific location for ease of management as a
>admin.
>
>Maybe we can use an environment variable like PKGDESTDIR that is
>optional... like DESTDIR is
>currently.
>
> > Thank you for your time, I apperciate all your efforts and assistance
>with
> > Slackware as well. It has made my life easier!
>
>Thanks, I'm glad to hear it is useful to you. =]
>
>
>take care,
>jason
>
>--
>Jason Woodward
>woodwardj at jaos.org
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.custom
Type: application/octet-stream
Size: 7974 bytes
Desc: not available
Url : http://software.jaos.org/pipermail/slapt-get-devel/attachments/20050927/e7c59c37/Makefile-0001.obj
More information about the Slapt-get-devel
mailing list