LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-24-2005, 06:20 PM   #1
Tsuroerusu
Member
 
Registered: Jul 2004
Location: Denmark
Distribution: openSUSE
Posts: 46

Rep: Reputation: 15
How to create packages?


OK, I'm sittin' here compiling Sun's Java because their f*****-up licensing agreement is so damn restrictive, so I was wondering how I can create "my own" jdk14 and jdk15 packages which I can burn to a CD and put on the bookshelf so that I can install it in a few mins. in the future without having to sit here compiling for three hours every time I trash Windows from a PC :P
 
Old 11-24-2005, 09:29 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
The following is assuming you are in tcsh. If you use bash... enter tcsh before typing this or translate it into bash syntax.

Code:
foreach file ( `pkg_info | grep jdk | awk '{print $1}'` )
        echo "Creating package for $file"
        pkg_create -b $file
end
This is actually part of a shell script I use on my build box so I can just bring packages to upgrade the computers I maintain. The only main difference is the usual script excludes the grep. It will drop the package tarballs in the current directory. Change the grep to make it as specific as you want... this one catches all the jdks... even the linux ones.

Code:
#!/bin/tcsh
foreach file ( `pkg_info | awk '{print $1}'` )
        echo "Creating package for $file"
        pkg_create -b $file
end

Last edited by frob23; 11-24-2005 at 09:31 PM.
 
Old 11-25-2005, 12:20 AM   #3
Tsuroerusu
Member
 
Registered: Jul 2004
Location: Denmark
Distribution: openSUSE
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks a lot man!

Last edited by Tsuroerusu; 11-25-2005 at 05:24 PM.
 
Old 11-25-2005, 09:15 AM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Please respect the licensing of a program's author. Even if you do not like it. I provided that information so that you can have personal packages. Do not redistribute them to others.
 
Old 11-25-2005, 05:23 PM   #5
Tsuroerusu
Member
 
Registered: Jul 2004
Location: Denmark
Distribution: openSUSE
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by frob23
Please respect the licensing of a program's author. Even if you do not like it. I provided that information so that you can have personal packages. Do not redistribute them to others.
Of course not, you know, guys need to roar somethign out sometimes, at least I do
 
Old 11-25-2005, 09:33 PM   #6
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
I said that mainly because quite recently I have seen more than one person asking myself, and others, to violate the license terms by sending them precompiled packages of the jdk.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create cd with own packages (debian) Cybercool Linux - Newbie 2 05-10-2004 04:36 AM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM
create packages huno Linux - Software 1 01-23-2004 05:54 AM
Create binary packages of LFS 5.0 pengStudent Linux From Scratch 7 11-16-2003 04:36 PM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration