Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 26 Jul 2014, 01:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
dpupmaker.sh v1.9 -- compiles source tarballs into Dotpups
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 4 [53 Posts]   Goto page: Previous 1, 2, 3, 4
Author Message
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Sun 15 Jan 2006, 17:55    Post subject:  

And now I'll never have time to read Rute; I'll spend the rest of my days converting a Mozilla bookmark file into a Dillo one... Shocked
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 15 Jan 2006, 18:16    Post subject:  

Bookmark-Converter:

search bookmark.html in /root/.mozilla

run this command:
Code:
echo ":s0: test" > /root/.dillo/bm.txt && cat bookmarks.html |grep tp| sed "s/^.*HREF=./s0 /" | sed "s/\"[^>]*>/ /" | sed "s/<.*$//" >>/root/.dillo/bm.txt


In my case it works, in your case maybe you need to remove some corrupted lines with an editor from /root/.dillo/bm.txt, if Dillo does not display the new bookmarks.

Mark
Back to top
View user's profile Send private message Visit poster's website 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Sun 15 Jan 2006, 18:27    Post subject:  

And here I'd started doing it by hand...

Am proud of myself for making my Moz start page (an html page of my most-visited sites) into the Dillo start page, and moving about:splash to the Dillo "home" page by editing /root/dillo/dillo85p a bit. This is so much more fun than w98...

I figured out the cookie thing. I have DSL, with an unpatched Dillo. Must've done the test there. So now my usage of DSL is down to one thing. I can't record through my sound card in DSL, I get a scratchy noise with a very faint bit of the actual sound from the mic. Since I do experimental music, that's actually a good (well, interesting) thing...

Everything else is done in Puppyland!
Back to top
View user's profile Send private message Visit poster's website 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Sun 15 Jan 2006, 18:42    Post subject:  

Hey, it worked, thanks! I had to change the "cat bookmarks.html" to "cat /root/.mozilla blah blah blah...and then the magic happened! I understood a little of what I was typing into xterm and the rest was well...I don't understand why LDA and ROR and DEX and CPY still make so much sense to me and "s/\"[^>]*>/ /" | sed " doesn't...
Back to top
View user's profile Send private message Visit poster's website 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Sun 15 Jan 2006, 19:25    Post subject:  

bugman wrote:
I would like to say that I am a new user and a complete idiot (the total package!) but I like doing stuff in a terminal. I learn things, I feel cool, I get to whine and complain in this forum when nothing works!
Can I suggest reading Eric Raymond's essay How to Ask Questions the Smart Way ? That might help you ask in a way that makes it easier for others to provide good answers.

Do bear in mind that my script was intended for use by people who are used to compiling applications from tarballs... it tries fairly hard to be general, and works much of the time... but it can't compensate for a lack of experience when it doesn't work as you'd expect, I'm afraid!
Quote:
That being said, I downloaded, unzipped, and ran dpupmaker on the Chimera tarball.
It would have been very helpful for you to state the URL of that tarball, and what exactly you typed at the command line.
Code:
./dpupmaker.sh: line 121: ./configure: No such file or directory dpupmaker.sh: Error: Unable to configure application chimera-2.0a19
This suggests to me that the tarball you have downloaded may not be set up to be compiled using the standard GNU Autotools. Either that, or the directory it unpacks to is not what dpupmaker.sh was expecting, though in that case the error message should have been different.

Quote:
I checked line 121 and it said:

./configure ${4:-"--prefix=/usr/local"} ||

Should I change this to something else ...
No. The error mesage you see says that there is no script ./configure, so editing what parameters are passed to it isn't going to help.
Quote:
Is Chimera un-puppable
Someone who understands how to manually compile and install Chimera will be ably to create a .pup of it. Whether dpupmaker.sh can handle whatever idiosyncracies its source tarball may have, is a different question entirely.

Quote:
Should I put aside a week and read the f'ing Rute manual?
No, just start reading it, and read a little more of it each week... reading it all in one go probably will just confuse you Smile But reading it, or any good Linux tutorial, is a good idea if your aim is to gain competence at a shell prompt.

I just found the tarball I think you are using, at http://www.rocklinux.net/people/ripclaw/projects/software/chimera/devel/chimera-2.0a19.tar.gz . It uses an older approach to creating its Makefiles, an Imakefile and xmkmf. If you unpack it and look at chimera-2.0a19/doc/INSTALL you will see the instructions on how to build it. Sadly, even they don't quite work on Puppy, they use a tool called gccmakedep which isn't provided (and which I have not heard of before). Or else my Puppy is different from MU's, since he seems to have compiled the thing OK!

Overall, I'm not sure it is worth adding extra complexity to dpupmaker.sh to try to handle the oddball cases of older non-GNU-Autotools-using tarballs. It's "enough", in my opinion, to just let the user of the script know that there was no ./configure script, so dpupmaker.sh can't continue... and it did exactly that for you. And, of course, others have written helpers for packagers who compile things and then want to make a package of the results. dpupmaker.sh is not the "only game in town".

Jonathan

PS. My first personal computer was 6502-based, hand assembled from a kit, with 1 and 1/4 K of RAM... a hex keypad to enter code and data, and a cassette interface I never did get to work right Smile

PPS Wrote this, and then saw the MU had already followed much of this path with you... oh well!
Back to top
View user's profile Send private message 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Sat 04 Mar 2006, 18:13    Post subject:  

A new version of dpupmaker.sh has just been released (updated in the first post of this thread). It now searches all of /usr for installed files rather than just /usr/local, and has a fix to allow it to compile Samba tarballs. The changelog now reads:
Code:
# $Log: dpupmaker.sh,v $
# Revision 1.9  2006/03/05 05:31:32  root
# Search /usr for installed files not just /usr/local
#
# Revision 1.8  2006/03/04 01:52:07  root
# Added support for Samba-style source tarballs.
#
# Revision 1.7  2006/03/04 01:50:25  root
# Added support for .tgz file extension.
#
# Revision 1.6  2006/01/13 09:07:51  root
# Source code now installed in /usr/local/archive
# Fixed size calculation for source dotpups
# Fixed registration of source dotpups with pupget database
#
# Revision 1.5  2006/01/13 05:34:19  root
# Removed make distclean as it is no longer a common target.
# Check exit status of ./configure command and exit upon failure.
# Include dpupmaker.sh version in created dotpup.sh files.
# Add creation of "source dotpup" files (experimental new feature).
#
# Revision 1.4  2006/01/03 10:26:02  root
# Added a version number based on RCS Id which is displayed before usage info.
# Added a simplistic check that development tools have been installed (which make).
# Fixed a bug affecting packages with dirs inside their structure with the same
#   name as the tarball (such as binutils).
# Added missing extra backslashes in the embedded dotpup.sh template.  JM.
#
# Revision 1.3  2006/01/03 03:57:06  root
# Added ability to override options passed to ./configure as a fourth parameter.  JM.
#
# Revision 1.2  2006/01/02 11:03:41  root
# Added GNU GPL Copyright notice prior to initial publication.  JM.
#
# Revision 1.1  2006/01/02 09:14:56  root
# Initial revision


Jonathan
Back to top
View user's profile Send private message 
MasterK

Joined: 25 Mar 2006
Posts: 7

PostPosted: Sat 25 Mar 2006, 17:05    Post subject:  

Just want to say Great script!
i've just managed to create my own Proftpd pup package Very Happy. I've used this FTP server daemon for quite a while, so i was happy to see this one compiling without the big problems.

One minor hassle was the options settings for dpupmaker, which took me a couple of "tryouts" before i got it right.
Proftpd compiles with mod_ldap which isn't included in the pup developer package, so i had to --disable-mod-ldap in the configure script.

Using dpupmaker the correct syntax for this is:

./dpupmaker.sh proftpd-1.2.10.tar "This is a ftp server daemon" "" "--disable-mod-ldap".

It's IMPORTANT you remember ALL the options in the commandline, i just placed 2 quotationmarks for the empty software group, just using the standard settings.

Again.. Thank you for a great script.
Back to top
View user's profile Send private message 
ELMIT

Joined: 02 Mar 2006
Posts: 96
Location: Taipei

PostPosted: Wed 17 May 2006, 04:07    Post subject:  

I try to make a pup package from realtek-linux-audiopack-3.5-6.tar.bz2

The installation script of this package was:

Code:
#!/bin/sh

######## VERSION 1.0 ########

KERNEL_VER=`uname -r`

echo ".....Decompress Driver source v1.0.9b Rv3.5.6"
tar xvpfj alsa-driver-1.0.9b_26.tar.bz2 > /dev/null 2>&1
echo ".....Decompress ALSA Library source v1.0.9"
tar xvpfj alsa-lib-1.0.9.tar.bz2 > /dev/null 2>&1
echo ".....Decompress ALSA Utility v1.09a"
tar xvpfj alsa-utils-1.0.9a.tar.bz2 >/dev/null 2>&1
#echo ".....Decompress XRealMixer v0.5"
#tar xvpfj xrmix-0.5.tar.bz2 > /dev/null 2>&1
sync

echo "Remove old sound driver"
if [ -d /lib/modules/$KERNEL_VER/kernel/sound ]; then
   rm -rf /lib/modules/$KERNEL_VER/kernel/sound/pci
   rm -rf /lib/modules/$KERNEL_VER/kernel/sound/acore
   rm -rf /lib/modules/$KERNEL_VER/kernel/sound/driver
fi

echo "Compile Driver........"
cd alsa-driver-1.0.9b_26
./configure                 
make
make install
./snddevices
cd ..

echo "Remove old alsa library"
rm -rf /lib/libasound.*
rm -rf /usr/lib/libasound.*

echo "Compile ALSA Library....."
cd alsa-lib-1.0.9
./configure
make
make install
cd ..


echo "Compile ALSA Utility......"
cd alsa-utils-1.0.9a
./configure
make
make install
cd ..

#echo "Comiple XrealMixer......"
#cd ./

## for x86_64
if [ -d /usr/lib64 ]; then
  cp -l /usr/lib/libasound.* /usr/lib64
fi

## remove driver modules
if [ -f /etc/init.d/alsasound ]; then
   /etc/init.d/alsasound stop
fi

## del audio stat file
if [ -f /etc/asound.state ]; then
   rm -rf /etc/asound.state
fi

## alsa driver sndstat file relink
rm -rf /dev/sndstat
ln -s /proc/asound/oss/sndstat /dev/sndstat

## sample wave
if [ -d /usr/share/sounds/alsa ]; then
     bzip2 -d test.wav.bz2
     cp -f test.wav /usr/share/sounds/alsa
     rm -rf test.wav
else
     mkdir /usr/share/sounds/alsa
     bzip2 -d test.wav.bz2
     cp -f test.wav /usr/share/sounds/alsa
     rm -rf test.wav
fi

echo "Remove Folder....."
rm -rf alsa-driver-1.0.9b_26
rm -rf alsa-lib-1.0.9
rm -rf alsa-utils-1.0.9a
alsaconf


Quote:

# dpupmaker.sh realtek-linux-audiopack-3.5-6.tar.bz2 Realtek-3.5-6
/usr/local/bin/dpupmaker.sh: line 133: ./configure: No such file or directory
dpupmaker.sh: Error: Unable to configure application realtek-linux-audiopack-3.5-6



What do I need to change to get it to work?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 4 of 4 [53 Posts]   Goto page: Previous 1, 2, 3, 4
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0860s ][ Queries: 12 (0.0049s) ][ GZIP on ]