LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2007, 08:15 AM   #1
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
package creation problem


hello, i need to add a configuration file to a package im building, but im not sure where to put it in the package so that it gets to the right place on the filesystem.

basically i want to create a package which drops a whole lot of fonts into a directory, then places a config file into the '/etc/fonts' dir, so that config file can be read by a program (freetype).

when i build my packages i use the '--prefix=/usr' option to configure, so im guessing the file will end up in '/usr/etc/fonts', instead of where i want it to go ('/etc/fonts'). i know about the '--sysconfdir=/etc' option to configure, but im not sure how just setting that would put the file in the right place?

any help to clear the confusion is much appreciated.
 
Old 07-22-2007, 08:31 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
I've created a font package myself, but I haven't had the need to use make or autoconf. Why not just create a subdirectory with usr/share/fonts and etc/fonts subdirectories and use makepkg on that?
 
Old 07-22-2007, 09:35 AM   #3
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Original Poster
Rep: Reputation: 15
hi uselpa, not sure i fully understand you. i thought that if i created an 'etc/fonts' directory within the root build directory, the resulting package would install the config file in '/usr/etc/fonts'? or do you mean create a seperate package for the config file?
 
Old 07-22-2007, 10:49 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
No, just one package.
Assuming your build directory is /build, if you create /build/etc/fonts then the resulting package will be installed in /etc/fonts, not /usr/etc/fonts (where would the additional usr come from?).
As an example, here's what my package looks like:
Code:
pu@slackw:/home/SHARED/software/sl120/allfonts$ less allfonts-1.0-noarch-1.tgz | cat
drwxr-xr-x root/root         0 2007-07-14 18:06 ./
drwxr-xr-x root/root         0 2007-07-13 19:42 usr/
drwxr-xr-x root/root         0 2007-07-13 19:42 usr/share/
drwxr-xr-x root/root         0 2007-07-14 18:04 usr/share/fonts/
drwxr-xr-x root/root         0 2007-07-13 22:41 usr/share/fonts/TTF_WIN/
-r--r--r-- root/root    245032 2001-08-23 14:00 usr/share/fonts/TTF_WIN/couri.ttf
   [...]
drwxr-xr-x root/root         0 2007-07-14 18:05 install/
-rwxr--r-- root/root       132 2006-06-25 00:45 install/doinst.sh
-rw-r--r-- root/root       258 2007-07-13 22:33 install/slack-desc
-rwxr--r-- root/root      1432 2007-07-14 18:05 install/doinst.py
drwxr-xr-x root/root         0 2006-06-24 11:34 etc/
drwxr-xr-x root/root         0 2006-06-24 11:45 etc/fonts/
-rw-r--r-- root/root       425 2006-06-24 11:24 etc/fonts/local.conf.MSFONTS
 
Old 07-22-2007, 11:52 AM   #5
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Original Poster
Rep: Reputation: 15
ah yes of course! i understand now i think the '--prefix=/usr' thing got me confused. i thought the build directory would be '/user', when its actually '/'. so doing as you suggest will allow me to put the config file into '/etc/fonts' directory.

thankyou for your help uselpa

Last edited by mobilemonkey; 07-22-2007 at 11:53 AM.
 
Old 07-22-2007, 02:13 PM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Where would you use --prefix=/usr in this case?
 
  


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
package creation and slack-desc file mobilemonkey Slackware 6 07-02-2007 11:53 AM
Creation of RPM package yashwantpinge Programming 1 03-06-2006 08:57 AM
package creation problem Rognon Slackware 8 03-28-2005 05:56 PM
Creation of Linux Install Package irfanhab Programming 2 09-17-2004 07:02 AM
PHP Package creation failure datadriven Slackware 4 12-31-2003 08:31 PM


All times are GMT -5. The time now is 04:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration