I did the following:
Check out the source
Code:
--------------------
mkdir svn.slimdevices.com-repos/slim/7.7/tags/7.7.1
cd svn.slimdevices.com-repos/slim/7.7/tags/7.7.1
svn co http://svn.slimdevices.com/repos/slim/7.7/tags/7.7.1
--------------------
edit the post install script
Code:
--------------------
vi platforms/debian/logitechmediaserver.postinst
--------------------
find the section on apparmor config and make it look like:
Code:
--------------------
# If there's an apparmor config, we need to update it to allow mysql to work
properly
# if [ -f /etc/apparmor.d/usr.sbin.mysqld ]; then
# ## Remove the end-bracket so we can input our data into the
file...
# sed -e 's/}//' /etc/apparmor.d/usr.sbin.mysqld >
/etc/apparmor.d/usr.sbin.mysqld.squeezeboxserver.new
# echo " # SqueezeBox Apparmor Changes for MySqld
# /var/lib/squeezeboxserver/cache/ r,
# /var/lib/squeezeboxserver/cache/my.cnf r,
# /var/lib/squeezeboxserver/cache/mysql.startup rw,
# /var/lib/squeezeboxserver/cache/mysql-error-log.txt rw,
# /var/lib/squeezeboxserver/cache/squeezebox-mysql.pid w,
# /var/lib/squeezeboxserver/cache/squeezebox-mysql.sock w,
# /var/lib/squeezeboxserver/cache/MySQL/ r,
# /var/lib/squeezeboxserver/cache/MySQL/** rwk,
# } " >> /etc/apparmor.d/usr.sbin.mysqld.squeezeboxserver.new
#
# mv /etc/apparmor.d/usr.sbin.mysqld
/var/lib/squeezeboxserver/usr.sbin.mysqld.orig
# mv /etc/apparmor.d/usr.sbin.mysqld.squeezeboxserver.new
/etc/apparmor.d/usr.sbin.mysqld
# if [ -x /etc/init.d/apparmor ]; then
# /etc/init.d/apparmor restart
# fi
# echo "\n"
# fi
--------------------
Build the package
Code:
--------------------
mkdir ~/LogitechMediaServer/Patch /tmp/LMS
./buildme.pl --build debian --buildDir /tmp/LMS --sourceDir . --destDir
~/LogitechMediaServer/Patch
--------------------
I had to add some packages to get in all the build tools:
debhelper
dpkg-dev
--
JuddRogers
------------------------------------------------------------------------
JuddRogers's Profile: http://forums.slimdevices.com/member.php?userid=29924
View this thread: http://forums.slimdevices.com/showthread.php?t=93456
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix