maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [Announce] DEB packages creator for N9/50 - v0.2.0 (https://talk.maemo.org/showthread.php?t=91053)

Schturman 2013-08-17 11:24

Re: [Announce] DEB packages creator for N9/50
 
I know this and like I said before it worked in all my tests :confused::eek:
Ok, I will add
Code:

devel-su user -c "command"
PS, or i can copy it to /opt for example and ado all this here. At the end from opt it can copy package back to /home/user...

Schturman 2013-08-17 12:03

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
1 Attachment(s)
Updated to v0.0.2 (first post)
* Creating packages moved from /home/user to /opt

Again I don't have any problem with creating packages and copying the created packages to MyDocs..
Example icon changer that I created just now...

MK99, please try this new version and get screenshot before it will close itself. Report here...

MK99 2013-08-17 12:39

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
https://www.dropbox.com/s/r5ou63mnpa...7_15-23-47.png

Now it is working. But my file isn't. ;)

Schturman 2013-08-17 12:58

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
OK, good :)
If you .deb not do what it should do, check your files (path), check your scripts (postinst, preinst, postrm, prerm).
PS. created file installable and uninstallable ? What exactly not work ?

coderus 2013-08-17 13:14

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
can you explain why you need to be a root?

Schturman 2013-08-17 13:25

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
For this:
Code:

cp -f /opt/dpkgcreator/tar /bin && chmod 777 /bin/tar
ln -sf busybox /bin/tar

If you are user, you will get:
Code:

~ $ cp -f /opt/dpkgcreator/tar /bin
cp: can't create '/bin/tar': File exists
~ $ ln -sf busybox /bin/tar
ln: /bin/tar: File exists
~ $


coderus 2013-08-17 13:31

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
Code:

export PATH=$PATH:/opt/dpkgcreator
add it to your packaging script

MK99 2013-08-17 13:35

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
Quote:

Originally Posted by Schturman (Post 1367854)
OK, good :)
If you .deb not do what it should do, check your files (path), check your scripts (postinst, preinst, postrm, prerm).
PS. created file installable and uninstallable ? What exactly not work ?

Two things need to learn...
My opt folder need to right permission and my deb doesn't show on app-manager. :rolleyes:

Schturman 2013-08-17 13:51

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
Quote:

Originally Posted by coderus (Post 1367862)
Code:

export PATH=$PATH:/opt/dpkgcreator
add it to your packaging script

Andrey, before I decided to do it like i did I tried it a many times.. I manually added it to PATH (/root/.profile), but it just not want to work... Only when I copied tar to /bin and give permission 777, only after this it worked for me...

Also it need permission 755 to DEBIAN folder and included files. if it in MyDoc, I can't change it... And without changing I get this error and package not created:
Quote:

~ $ dpkg-deb -b /home/user/MyDocs/DEBCREATOR/iconchanger /home/user/MyDocs/DEBCREATOR
dpkg-deb: warning: '/home/user/MyDocs/DEBCREATOR/iconchanger/DEBIAN/control' contains user-defined field 'Maemo-Display-Name'
dpkg-deb: warning: '/home/user/MyDocs/DEBCREATOR/iconchanger/DEBIAN/control' contains user-defined field 'Maemo-Flags'
dpkg-deb: warning: '/home/user/MyDocs/DEBCREATOR/iconchanger/DEBIAN/control' contains user-defined field 'Maemo-Icon-26'
dpkg-deb: building package `iconchanger' in `/home/user/MyDocs/DEBCREATOR/iconchanger_0.0.2_armel.deb'.
dpkg-deb: control directory has bad permissions 777 (must be >=0755 and <=0775)
But like I already said I don't have any problem when it work in /home/user or now in /opt ;)

PS. Later I will try something else to get it run as user...

Schturman 2013-08-17 13:58

Re: [Announce] DEB packages creator for N9/50 - v0.0.2
 
MK99, scripts in DEBIAN folder to write permission to your folders.
About not shown in apps manager, it weird.. Maybe it not installed properly ? Don't know...
Download my iconchanger packaged, put it to MyDocs somewhere and extract the content, to see how I use scripts..
Code:

dpkg-deb -x /path/to/deb-package-name /path/to/target directory && dpkg-deb -e /path/to/deb-package-name /path/to/target directory/DEBIAN


All times are GMT. The time now is 07:15.

vBulletin® Version 3.8.8