Skip to content

Commit

Permalink
added post install step to .deb file
Browse files Browse the repository at this point in the history
git-svn-id: https://codelite.svn.sourceforge.net/svnroot/codelite/trunk@1202 9da81c78-c036-0410-9e1f-a2b0375e4b5a
  • Loading branch information
eranif committed Mar 24, 2008
1 parent 8d13c3c commit f18519c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 6 deletions.
5 changes: 5 additions & 0 deletions fakeroot/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
echo "Running postinst step..."
\rm -f $HOME/.codelite/config/liteeditor.xml
echo "Done"

24 changes: 24 additions & 0 deletions make_repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#########################################################################################################################
##1. Install Apache and create the folder debs under its htdocs directory
##2. Copy the .deb file to /usr/local/apache2/htdocs/debs
##3. Run the following command from /usr/local/apache2/htdocs/debs:
## /usr/bin/dpkg-scanpackages . /dev/null > Packages
##4. Compress the Packages file to dists/gutsy/restricted/binary-i386/Packages.gz
##5. Add the following entry to your /etc/apt/sources.list: deb http://eran-linux:/debs gutsy restricted (replace eran-linux with your IP/server name)
echo "removing old deb files..."
rm *.deb
rm /usr/local/apache2/htdocs/debs/*.deb
echo "Creating new deb file..."
./make_deb.sh
echo "Copying deb to /usr/local/apache2/htdocs/debs/"
cp *.deb /usr/local/apache2/htdocs/debs
echo "changing directory to /usr/local/apache2/htdocs/debs/"
cd /usr/local/apache2/htdocs/debs
echo "Running: /usr/bin/dpkg-scanpackages tool..."
/usr/bin/dpkg-scanpackages . /dev/null > Packages
echo "Compressing Packages..."
gzip Packages
echo "Moving Packages.gz to dist directory"
mv Packages.gz dists/gutsy/restricted/binary-i386/Packages.gz
echo "Done"

20 changes: 14 additions & 6 deletions make_repo.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
1. Install Apache and create the folder debs under its htdocs directory
2. Copy the .deb file to /usr/local/apache2/htdocs/debs
3. Run the following command from /usr/local/apache2/htdocs/debs:
/usr/bin/dpkg-scanpackages . /dev/null > Packages
4. Compress the Packages file to dists/gutsy/restricted/binary-i386/Packages.gz
5. Add the following entry to your /etc/apt/sources.list: deb http://eran-linux:/debs gutsy restricted (replace eran-linux with your IP/server name)
#########################################################################################################################
##1. Install Apache and create the folder debs under its htdocs directory
##2. Copy the .deb file to /usr/local/apache2/htdocs/debs
##3. Run the following command from /usr/local/apache2/htdocs/debs:
## /usr/bin/dpkg-scanpackages . /dev/null > Packages
##4. Compress the Packages file to dists/gutsy/restricted/binary-i386/Packages.gz
##5. Add the following entry to your /etc/apt/sources.list: deb http://eran-linux:/debs gutsy restricted (replace eran-linux with your IP/server name)

cp *.deb /usr/local/apache2/htdocs/debs
cd /usr/local/apache2/htdocs/debs
/usr/bin/dpkg-scanpackages . /dev/null > Packages
gzip Packages
mv Packages.gz dists/gutsy/restricted/binary-i386/Packages.gz
echo "deb installed"

0 comments on commit f18519c

Please sign in to comment.