--- a/perl/CMakeLists.txt.orig	2013-07-12 08:05:38.000000000 +0800
+++ a/perl/CMakeLists.txt	2013-07-12 08:11:19.000000000 +0800
@@ -2,7 +2,7 @@
 
 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
 FIND_PACKAGE(Perl)
-FIND_PACKAGE(PerlLibs2)
+FIND_PACKAGE(PerlLibs)
 
 IF ( PERL_EXECUTABLE )
 	EXEC_PROGRAM( ${PERL_EXECUTABLE} ARGS "-e 'use Config; print \$Config{revision},\"\\n\"'" OUTPUT_VARIABLE PERL_VERSION )
@@ -20,9 +20,7 @@
 SWIG_ADD_MODULE(nfqueue perl ../libnetfilter_queue.i ${SOURCES})
 SWIG_LINK_LIBRARIES(nfqueue ${PERL_LIBRARY} ${LIBNFQ_LDFLAGS})
 
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/nfqueue.pm
-	DESTINATION ${LIB_INSTALL_DIR}/perl${PERL_VERSION}/)
-
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libnfqueue.so
-	DESTINATION ${LIB_INSTALL_DIR}/perl${PERL_VERSION}/)
 
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/nfqueue.pm
+		${CMAKE_CURRENT_BINARY_DIR}/libnfqueue.so
+	DESTINATION ${PERL_ARCHLIB})
