|
2012-06-27
, 16:07
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#72
|
|
2012-06-27
, 16:20
|
|
Posts: 196 |
Thanked: 113 times |
Joined on Jun 2010
@ Finland
|
#73
|
The Following User Says Thank You to Zas For This Useful Post: | ||
|
2012-06-27
, 18:57
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#74
|
|
2012-06-27
, 19:25
|
|
Posts: 196 |
Thanked: 113 times |
Joined on Jun 2010
@ Finland
|
#75
|
tr -d '\r' < /home/user/foopackage/DEBIAN/control > /home/user/foopackage/DEBIAN/controltmp mv /home/user/foopackage/DEBIAN/controltmp /home/user/foopackage/DEBIAN/control
The Following User Says Thank You to Zas For This Useful Post: | ||
|
2012-06-27
, 19:43
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#76
|
I think your files don't use unix newlines.
Convert the control file:
Code:tr -d '\r' < /home/user/foopackage/DEBIAN/control > /home/user/foopackage/DEBIAN/controltmp mv /home/user/foopackage/DEBIAN/controltmp /home/user/foopackage/DEBIAN/control
|
2012-06-27
, 19:57
|
|
Posts: 196 |
Thanked: 113 times |
Joined on Jun 2010
@ Finland
|
#77
|
#!/bin/sh #create .deb files for packages (fremantle&harmattan) if [ ! $1 ];then echo Create .deb files for fremantle and harmattan devices echo Usage: make-deb /path/to/package exit 0 fi #step in package directory chdir "$1" #versionnumber and packagename from control file packagename=`grep "Package: " DEBIAN/control | cut -d ' ' -f 2` versionnumber=`grep "Version: " DEBIAN/control | cut -d ' ' -f 2` #convert from crlf to lf tr -d '\r' < DEBIAN/control > controltmp mv controltmp DEBIAN/control #remove old md5 and digsig sums rm -f DEBIAN/md5sums 2>/dev/null rm -f DEBIAN/digsigsums 2>/dev/null #list all folders except DEBIAN find | grep -v "./DEBIAN" > ../md5 #get md5 and digsig sums to DEBIAN/ while read line do if [ -f "$line" ]; then #cut "./" from beginning line=`echo "$line" | cut -c 3-` #get md5 md5sum "$line" >> DEBIAN/md5sums #get sha1 for digital signatures echo S 15 com.nokia.maemo H 40 `sha1sum "$line" | cut -c -40` R `expr length "$line"` $line >> DEBIAN/digsigsums fi done < "../md5" #remove temp file list rm -f ../md5 #package control.tar.gz and data.tar.gz tar -cvzf ../control.tar.gz -C DEBIAN/ . >/dev/null tar -cvzf ../data.tar.gz . --exclude=DEBIAN >/dev/null echo 2.0>../debian-binary #step outside package folder cd .. #create debian archive "package_version.deb" ar -rcv $packagename"_"$versionnumber.deb debian-binary control.tar.gz data.tar.gz >/dev/null #remove packaged files rm -f debian-binary control.tar.gz data.tar.gz 2>/dev/null
|
2012-06-27
, 20:03
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#78
|
|
2012-06-27
, 20:05
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#79
|
|
2012-06-27
, 20:22
|
|
Posts: 196 |
Thanked: 113 times |
Joined on Jun 2010
@ Finland
|
#80
|
openssl base64 -in /home/user/MyDocs/fooicon.png | sed 's/^/ /'
Package: The-Amazing-Foo-Theme
Name: The Amazing Foo Theme
Version: 0.1
Architecture: armel
Description: Foo makes your dreams come true!* *Dreams not included. :P
Maintainer: ammyt <ammyt1@hotmail.com>
Author: ammyt <ammyt1@hotmail.com>
Section: user/Utilities+
Maemo-Icon-26:
fV19YXN9YXNbYTBkc2ZnW30koyR9dDM0MHRxMzI0XTQzMzQ5MD UxQCSjNWMwMjk0ZjV9QDQzXUB9
XaOAZjGjOTUxISI1QDJkOTM1MjQzNV0yMzV1ZDEyNDM15WRdYX dyZV0yMzQ5MDUxQCSjNWMwMjk0
ZjV9QDQzXUB9XaOAZjGjOTUxISI1QDJkOTM1MjQzNV0yMzV1ZD EyNDM15WQwQH1dYXdyZV0yMzQ5
MDUxQCSjNWMwMjk0ZjV9QDQzXUB9XaOAZjGjOTUxISI1QDJkOT M1MjQzNV0yMzV1ZDEyZDN9gEAh
IkQjISJEI0QjIjXlZDBAZDN9gEAhIkQjISJEI0QjIiEiJcVESU TFPUkhIkQjxSU9SWQxMjM1MOU0
MEBkM32AQCEiRCMhIkQjRCMiISIlxURJRMU9SSEiRCPFJT1JZD EyMzUw5TQz5X1dfWFzfWFzW2Ew
ZHNmZ1t9JKMkfXQzNDB0cTMyNF19M+V9XX1hc31hc1thMGRzZm dbfSSjJH10MzQwdHEzMjRdfV1h
d3JlXTIhIiXFRElExT1JISJEI8UlPUlkMTIzNTDlNDPl
<empty line>
apt-get install binutils
If you enter "make-deb /home/user/package" the deb will be in /home/user.