Active Topics

 


Reply
Thread Tools
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#31
Originally Posted by sulu View Post
...
So change your ln command accordingly:
Code:
ln -s /opt/foopackage/foo /home/user/foopackage/usr/bin/foo
If you check this link in your testing environment it won't work because you have no /opt/foopackage/foo but it will work after installing the package.
Wait, so users would have to install the package twice
As said, it is best to include the ls in the postinst install, that would be true optification

Just a heads-up, in the applications I have made, I only create a file in /usr/bin that executes the actual executable in /opt. Like, the file, say foo, in /usr/bin/ contains a one line command which is /opt/foopackage/foo which launches the actual application from /opt once that /usr/bin/foo file is executed.

How about that?
 

The Following User Says Thank You to ammyt For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#32
Originally Posted by ammyt View Post
You sure the tar version you're using is GNU?
If not, you can download this tar then:
Code:
cp /where/you/downloaded/that/tar /usr/bin/tar
So I should be able to package on the N9?
 
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#33
Originally Posted by F2thaK View Post
So I should be able to package on the N9?
Yes, in theory, yes.
 

The Following User Says Thank You to ammyt For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#34
Originally Posted by ammyt View Post
I'm gonna look into it, stop crying for god's sake!
It seemed that my question isn't even noticed
Because of that I posted it
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#35
[off-topic]It's most likely going to be "unnoticed", if You would continue to repeat it over and over. Like You have quite a history of doing so, on this forum...[/off-topic]
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#36
Originally Posted by F2thaK View Post
Edit: I would also like to add postinstall and rm scripts if you could help me with that
The problem was with postinst and postrm because my package installed in to /home/user and from this location my postinst will need to be transfered one file into MyDocs/Documents..
I used this command:
Code:
#!/bin/sh

cp -f /home/user/N9QTweak/Nokia_N9_QuickTweak_script_v2.9.pdf /home/user/MyDocs/Documents
Problem here that if I want to transfer something from this location to MyDocs, I need to be USER, but my script run as ROOT.. For fixing I used this command:
Code:
#!/bin/sh

devel-su user -c "cp -f /home/user/N9QTweak/Nokia_N9_QuickTweak_script_v2.9.pdf /home/user/MyDocs/Documents"
 

The Following User Says Thank You to Schturman For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#37
Originally Posted by ammyt View Post
You sure the tar version you're using is GNU?
If not, you can download this tar then:
Code:
cp /where/you/downloaded/that/tar /usr/bin/tar
Not work..
I steel get the same error:
Code:
tar: unrecognized option '--format=gnu'
BusyBox v1.19.0.git (MeeGo 3:1.19-8+0m6) multi-call binary.
Usage: tar -[cxtzjhmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...
dpkg-deb: subprocess tar -cf returned error exit status 1
I checked this folder (/usr/bin) before using your file, we don't have here any file or folder named "tar" or GNU..
 
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#38
Originally Posted by Schturman View Post
Not work..
I steel get the same error:
Code:
tar: unrecognized option '--format=gnu'
BusyBox v1.19.0.git (MeeGo 3:1.19-8+0m6) multi-call binary.
Usage: tar -[cxtzjhmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...
dpkg-deb: subprocess tar -cf returned error exit status 1
I checked this folder (/usr/bin) before using your file, we don't have here any file or folder named "tar" or GNU..
Forget the commands I typed, just be sure to place the new tar in /usr/bin then chmod +x it.

I don't have an n9/50 thus I have no idea about aegis crap.
 

The Following User Says Thank You to ammyt For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#39
Originally Posted by ammyt View Post
Forget the commands I typed, just be sure to place the new tar in /usr/bin then chmod +x it.

I don't have an n9/50 thus I have no idea about aegis crap.
Now I got this:
Code:
/usr/bin/tar: line 1: /opt/maemo/usr/bin/gnu/tar: not found
gpkg-deb: subprocess tar -cf returned error exit status 127
It's because we don't have this folders (/maemo/usr/bin/gnu/tar) in /opt...
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#40
Originally Posted by marmistrz View Post
How to create the .changes file this way?
I might've found the way to do it:
http://www.debian.org/doc/manuals/ma.../build.en.html

It's dpkg-genchanges

I'll look into it soon
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:49.