Permalink
Browse files

deb Packaging

  • Loading branch information...
jheizer committed Nov 11, 2014
1 parent c4e6f65 commit 2436dd0ab099732b93efead61a6a5bb810392d18
@@ -0,0 +1,5 @@
mobilemyth (0.7.1-1) unstable; urgency=low

* Initial release with package management

-- Jon Heizer <jheizer@gmail.com> Wed, 30 Oct 2014 13:24:23 -0500
@@ -0,0 +1 @@
9
@@ -0,0 +1,11 @@
Source: mobilemyth
Section: unknown
Priority: optional
Maintainer: Jon Heizer <jheizer@gmail.com>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.4

Package: mobilemyth
Architecture: all
Depends: apache2, mono-runtime, libmono-microsoft-visualbasic10.0-cil, mono-apache-server4, libapache2-mod-mono
Description: Web based Mythtv Client for Mobile Devices
@@ -0,0 +1,3 @@
Files: *
Copyright: 2012-2014, Jon Heizer <jheizer@gmail.com>
License: GPL-3
No changes.
@@ -0,0 +1 @@
mobilemyth_0.7.1-1_all.deb unknown optional
@@ -0,0 +1,4 @@
src/etc/mobilemyth/ etc
src/usr/share/mobilemyth/ usr/share
src/var/log/mobilemyth/ var/log

@@ -0,0 +1,17 @@
dh_auto_configure
dh_auto_build
dh_auto_test
dh_prep
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
dh_perl
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_builddeb
@@ -0,0 +1 @@
misc:Depends=
@@ -0,0 +1,16 @@
#!/bin/sh

if [ ! -f /etc/mobilemyth/apache.conf ]; then
cp /usr/share/mobilemyth/apache.conf /etc/mobilemyth/
fi

ln -s /etc/mobilemyth/apache.conf /etc/apache2/sites-available/mobilemyth.conf
ln -s /var/log/mobilemyth /usr/share/mobilemyth/web/App_Data/logs
ln -s /etc/mobilemyth /usr/share/mobilemyth/web/App_Data/settings

chown www-data:www-data /etc/mobilemyth -R
chown www-data:www-data /var/log/mobilemyth -R
chown www-data:www-data /usr/share/mobilemyth/web/App_Data -R

a2ensite mobilemyth.conf
service apache2 restart
@@ -0,0 +1,2 @@
#!/bin/sh
service apache2 reload
@@ -0,0 +1,7 @@
#!/bin/sh
a2dissite mobilemyth.conf

rm /etc/apache2/sites-available/mobilemyth.conf
rm /usr/share/mobilemyth/web/App_Data/logs -R
rm /usr/share/mobilemyth/web/App_Data/settings -R
rm /var/log/mobilemyth -R
@@ -0,0 +1,8 @@
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

%:
dh $@
@@ -0,0 +1 @@
3.0 (native)
@@ -0,0 +1,19 @@
Alias /mobilemyth "/usr/share/mobilemyth/web"

MonoServerPath mobilemyth "/usr/bin/mod-mono-server4"
MonoDebug mobilemyth true
MonoApplications mobilemyth "/mobilemyth:/usr/share/mobilemyth/web"

<Location "/mobilemyth">
Allow from all
Order allow,deny
MonoSetServerAlias mobilemyth
SetHandler mono
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
</Location>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript
</IfModule>

@@ -0,0 +1,8 @@
sudo apt-get -y remove mobilemyth
sudo rm -R /etc/mobilemyth
rm debian/mobilemyth/ -R
dpkg-buildpackage -uc -us
sudo dpkg -i ../mobilemyth_0.7.1-1_all.deb
ls /etc/mobilemyth/
ls -lah /usr/share/mobilemyth/web/App_Data

0 comments on commit 2436dd0

Please sign in to comment.