Active Topics

 


Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#11
I know this and like I said before it worked in all my tests
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's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#12
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...
Attached Images
 

Last edited by Schturman; 2013-08-17 at 12:23.
 
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#13
https://www.dropbox.com/s/r5ou63mnpa...7_15-23-47.png

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

Last edited by MK99; 2013-08-17 at 12:51.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#14
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 ?

Last edited by Schturman; 2013-08-17 at 13:00.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#15
can you explain why you need to be a root?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#16
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
~ $
 

The Following User Says Thank You to Schturman For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#17
Code:
export PATH=$PATH:/opt/dpkgcreator
add it to your packaging script
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#18
Originally Posted by Schturman View Post
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.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#19
Originally Posted by coderus View Post
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:
~ $ 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...

Last edited by Schturman; 2013-08-17 at 14:11.
 

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
#20
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
 

The Following 2 Users Say Thank You to Schturman For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:52.