Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (ca72ddbeecf5eaec4d1b5680925c6d06d018c373)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (ca72ddbeecf5eaec4d1b5680925c6d06d018c373)
  • Date: Thu, 7 Jun 2012 14:38:33 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 4 +
libs/inotify-cxx/BUILD | 1
libs/inotify-cxx/DEPENDS | 2
libs/inotify-cxx/DETAILS | 20 ++++++
libs/inotify-cxx/HISTORY | 3
libs/inotify-cxx/PRE_BUILD | 6 +
libs/inotify-cxx/files/CMakeLists.txt | 102
+++++++++++++++++++++++++++++++
libs/inotify-cxx/files/inotify-cxx.pc.in | 11 +++
utils/incron/BUILD | 1
utils/incron/DEPENDS | 1
utils/incron/DETAILS | 16 ++++
utils/incron/HISTORY | 2
utils/incron/INSTALL | 4 +
utils/incron/init.d/incron | 14 ++++
14 files changed, 187 insertions(+)

New commits:
commit ca72ddbeecf5eaec4d1b5680925c6d06d018c373
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

incron: new spell, inotify cron system

commit 5ab88a19e0c1a1b9931b56b7bc17d20227cb6286
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

inotify-cxx: new spell, inotify C++ interface

diff --git a/ChangeLog b/ChangeLog
index 8861d78..2ab55b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-07 Vlad Glagolev <stealth AT sourcemage.org>
+ * libs/inotify-cxx: new spell, inotify C++ interface
+ * utils/incron: new spell, inotify cron system
+
2012-06-05 Sukneet Basuta <sukneet AT sourcemage.org>
* editors/sandy: new spell, A tiny ncurses text editor
* shell-term-fm/ffmpegthumbnailer: new spell, Thumbnailer to create
diff --git a/libs/inotify-cxx/BUILD b/libs/inotify-cxx/BUILD
new file mode 100755
index 0000000..e013b8d
--- /dev/null
+++ b/libs/inotify-cxx/BUILD
@@ -0,0 +1 @@
+cmake_build
diff --git a/libs/inotify-cxx/DEPENDS b/libs/inotify-cxx/DEPENDS
new file mode 100755
index 0000000..2236fb7
--- /dev/null
+++ b/libs/inotify-cxx/DEPENDS
@@ -0,0 +1,2 @@
+depends -sub CXX gcc &&
+depends cmake
diff --git a/libs/inotify-cxx/DETAILS b/libs/inotify-cxx/DETAILS
new file mode 100755
index 0000000..bfb633f
--- /dev/null
+++ b/libs/inotify-cxx/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=inotify-cxx
+ VERSION=0.7.4
+ SOURCE="${SPELL}-${VERSION}.tar.bz2"
+ SOURCE_URL[0]=http://inotify.aiken.cz/download/${SPELL}/${SOURCE}
+
SOURCE_HASH=sha512:e1a40de1f78b082eab782e82c44fe427054257b9429f01a9faeb74c4f21c1e2e8c7ed9ce9a5b278b58ce61278637d884ebf76eae7ab7d4edaa65859809b7a3ed
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=http://inotify.aiken.cz/
+ DOCS="LICENSE-* TODO $DOCS"
+ LICENSE[0]=GPL
+ LICENSE[0]=LGPL
+ LICENSE[0]=MIT
+ ENTERED=20120607
+ SHORT="inotify C++ interface"
+cat << EOF
+inotify-cxx is an inotify C++ interface. It is designed for easy use of the
+Linux inotify technology in C++ applications. You need not to deal with file
+descriptors and such uncomfortable things.
+
+Instead you can use a few simple C++ classes.
+EOF
diff --git a/libs/inotify-cxx/HISTORY b/libs/inotify-cxx/HISTORY
new file mode 100644
index 0000000..ea2b0b8
--- /dev/null
+++ b/libs/inotify-cxx/HISTORY
@@ -0,0 +1,3 @@
+2012-06-07 Vlad Glagolev <stealth AT sourcemage.org>
+ * DEPENDS, DETAILS, PRE_BUILD,
files/{CMakeLists.txt,inotify-cxx.pc.in},
+ BUILD: spell created
diff --git a/libs/inotify-cxx/PRE_BUILD b/libs/inotify-cxx/PRE_BUILD
new file mode 100755
index 0000000..69c9fad
--- /dev/null
+++ b/libs/inotify-cxx/PRE_BUILD
@@ -0,0 +1,6 @@
+mk_source_dir "$SOURCE_DIRECTORY" &&
+cd "$SOURCE_DIRECTORY" &&
+
+unpack_file &&
+
+cp -av "$SPELL_DIRECTORY"/files/* .
diff --git a/libs/inotify-cxx/files/CMakeLists.txt
b/libs/inotify-cxx/files/CMakeLists.txt
new file mode 100644
index 0000000..6cf7a7b
--- /dev/null
+++ b/libs/inotify-cxx/files/CMakeLists.txt
@@ -0,0 +1,102 @@
+# Project
+project(inotify-cxx)
+set(MAJOR_VERSION 0)
+set(MINOR_VERSION 7)
+set(SUB_VERSION 4)
+set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}.${SUB_VERSION})
+SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
+
+# CMake
+if("${CMAKE_BUILD_TYPE}" STREQUAL "")
+ set(CMAKE_BUILD_TYPE Debug)
+endif("${CMAKE_BUILD_TYPE}" STREQUAL "")
+set(CMAKE_COLOR_MAKEFILE ON)
+cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
+
+# Packaging
+set(CPACK_COMPONENTS_ALL sharedlibs staticlibs headers)
+set(CPACK_COMPONENT_SHAREDLIBS_DISPLAY_NAME "Shared libraries")
+set(CPACK_COMPONENT_STATICLIBS_DISPLAY_NAME "Static libraries")
+set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ Headers")
+
+set(CPACK_COMPONENT_SHAREDLIBS_DESCRIPTION "Shared library for general use.")
+set(CPACK_COMPONENT_STATICLIBS_DESCRIPTION "Static library, used to embed
everything in your executable.")
+set(CPACK_COMPONENT_HEADERS_DESCRIPTION "C/C++ header files.")
+
+set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development")
+set(CPACK_COMPONENT_STATICLIBS_GROUP "Development")
+set(CPACK_COMPONENT_HEADERS_GROUP "Development")
+
+# Create suffix to eventually install in lib64
+#IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
+ SET(LIB_SUFFIX "")
+ SET(PACK_ARCH "")
+# ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
+# SET(LIB_SUFFIX 64)
+# SET(PACK_ARCH .x86_64)
+#endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
+
+# Package information
+set(CPACK_PACKAGE_VERSION ${VERSION_STRING})
+set(CPACK_PACKAGE_CONTACT "Gerd v. Egidy
<gerd.von.egidy AT intra2net.com>")
+set(CPACK_PACKAGE_DESCRIPTION "C++ Library to access inotify")
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CPACK_PACKAGE_DESCRIPTION}
+ )
+# Package settings
+set(CPACK_GENERATOR "DEB;RPM")
+set(CPACK_CMAKE_GENERATOR "Unix Makefiles")
+set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
+set(CPACK_PACKAGE_FILE_NAME
${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}${PACK_ARCH})
+
+set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE-GPL)
+set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE-LGPL)
+set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE-X11)
+
+set(CPACK_SOURCE_GENERATOR TGZ)
+set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME})
+set(CPACK_SET_DESTDIR "ON")
+
+set(cpp_sources inotify-cxx.cpp)
+set(cpp_headers inotify-cxx.h)
+
+# shared lib
+add_library(inotify-cxx SHARED ${cpp_sources})
+set_target_properties(inotify-cxx PROPERTIES
+ VERSION
${MAJOR_VERSION}.${MINOR_VERSION}.${SUB_VERSION}
+ SOVERSION 0)
+# increase SOVERSION on every backwards-incompatible change!
+
+# static lib
+add_library(inotify-cxx-static STATIC ${cpp_sources})
+set_target_properties(inotify-cxx-static PROPERTIES OUTPUT_NAME
"inotify-cxx")
+
+# Prevent clobbering each other during the build
+set_target_properties(inotify-cxx PROPERTIES CLEAN_DIRECT_OUTPUT 1)
+set_target_properties(inotify-cxx-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
+
+install( TARGETS inotify-cxx
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
+ COMPONENT sharedlibs
+ )
+
+install( TARGETS inotify-cxx-static
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}
+ COMPONENT staticlibs
+ )
+
+install( FILES ${cpp_headers}
+ DESTINATION include
+ COMPONENT headers
+ )
+
+
+# pkgconfig
+set(prefix ${CMAKE_INSTALL_PREFIX})
+set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
+set(includedir ${CMAKE_INSTALL_PREFIX}/include)
+set(libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
+
+configure_file(${CMAKE_SOURCE_DIR}/inotify-cxx.pc.in
${CMAKE_BINARY_DIR}/inotify-cxx.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/inotify-cxx.pc DESTINATION
lib${LIB_SUFFIX}/pkgconfig)
+
+include(CPack)
diff --git a/libs/inotify-cxx/files/inotify-cxx.pc.in
b/libs/inotify-cxx/files/inotify-cxx.pc.in
new file mode 100644
index 0000000..aa69f19
--- /dev/null
+++ b/libs/inotify-cxx/files/inotify-cxx.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: inotify-cxx
+Description: C++ Library to access inotify
+Requires:
+Version: @VERSION_STRING@
+Libs: -L${libdir} -linotify-cxx
+Cflags: -I${includedir}
diff --git a/utils/incron/BUILD b/utils/incron/BUILD
new file mode 100755
index 0000000..8f58e6d
--- /dev/null
+++ b/utils/incron/BUILD
@@ -0,0 +1 @@
+make
diff --git a/utils/incron/DEPENDS b/utils/incron/DEPENDS
new file mode 100755
index 0000000..f148724
--- /dev/null
+++ b/utils/incron/DEPENDS
@@ -0,0 +1 @@
+depends -sub CXX gcc
diff --git a/utils/incron/DETAILS b/utils/incron/DETAILS
new file mode 100755
index 0000000..0022206
--- /dev/null
+++ b/utils/incron/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=incron
+ VERSION=0.5.10
+ SOURCE="${SPELL}-${VERSION}.tar.bz2"
+ SOURCE_URL[0]=http://inotify.aiken.cz/download/${SPELL}/${SOURCE}
+
SOURCE_HASH=sha512:5d9ae4d4e3929ba16ad06652f21ef319041e13f9b15000d08053a973bef706b5d0137b9235c29049aed1673a2f41379b2b677eeedefacaf68308ad54405e4bfd
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=http://inotify.aiken.cz/
+ DOCS="LICENSE-* TODO $DOCS"
+ LICENSE[0]=GPL
+ ENTERED=20120607
+ SHORT="inotify cron system"
+cat << EOF
+This program is an "inotify cron" system. It consists of a daemon and a table
+manipulator. You can use it a similar way as the regular cron. The difference
+is that the inotify cron handles filesystem events rather than time periods.
+EOF
diff --git a/utils/incron/HISTORY b/utils/incron/HISTORY
new file mode 100644
index 0000000..bed9a35
--- /dev/null
+++ b/utils/incron/HISTORY
@@ -0,0 +1,2 @@
+2012-06-07 Vlad Glagolev <stealth AT sourcemage.org>
+ * DEPENDS, DETAILS, INSTALL: spell created
diff --git a/utils/incron/INSTALL b/utils/incron/INSTALL
new file mode 100755
index 0000000..5c94c76
--- /dev/null
+++ b/utils/incron/INSTALL
@@ -0,0 +1,4 @@
+make PREFIX="$INSTALL_ROOT/usr" install &&
+
+install_config_file "$SOURCE_DIRECTORY/incron.conf.example" \
+ "$INSTALL_ROOT/etc/incron.conf"
diff --git a/utils/incron/init.d/incron b/utils/incron/init.d/incron
new file mode 100755
index 0000000..02097f6
--- /dev/null
+++ b/utils/incron/init.d/incron
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+PROGRAM=/usr/sbin/incrond
+RUNLEVEL=3
+NEEDS="+local_fs"
+
+. /etc/init.d/smgl_init
+
+stop()
+{
+ echo "Stopping $NAME..."
+ $PROGRAM --kill
+ evaluate_retval
+}



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (ca72ddbeecf5eaec4d1b5680925c6d06d018c373), Vlad Glagolev, 06/07/2012

Archive powered by MHonArc 2.6.24.

Top of Page